Is there a kotlin method for doing this? ```var e...
# advent-of-code
k
Is there a kotlin method for doing this?
Copy code
var explosionResult = result.explode(0)
while (explosionResult.explosionOcurred) {
    explosionResult = result.explode(0)
}
e
Copy code
generateSequence { result.explode(0) }
    .takeWhile { it.explosionOcurred }
    .last()
👀 1
k
thx