Actually `takeWhile` is not going to work since it...
# announcements
c
Actually
takeWhile
is not going to work since it appears to not be reevaluated each time:
Copy code
var done = false
listOf(1,2,3,4).takeWhile{! done}.forEach {
    println(it)
    if (it >= 3) done = true
}
1234