https://kotlinlang.org logo
#advent-of-code
Title
# advent-of-code
k

Kiet

12/19/2021, 4:28 AM
Is there a kotlin method for doing this?
Copy code
var explosionResult = result.explode(0)
while (explosionResult.explosionOcurred) {
    explosionResult = result.explode(0)
}
e

ephemient

12/19/2021, 4:30 AM
Copy code
generateSequence { result.explode(0) }
    .takeWhile { it.explosionOcurred }
    .last()
👀 1
k

Kiet

12/19/2021, 4:31 AM
thx
5 Views