?
The code below is expected to display the numbers from 1 to 10, but it does not. Why?
The code below is expected to display the numbers from 1 to 10, but it does not. Why?
val seq = sequence { yieldAll(1..20) }
.filter { it < 11 }
println(seq)
val seq = sequence { yieldAll(1..20) }
.filter { it < 11 }
println(seq)
Join the Discussion
Login to post a comment or share your explanation.
Login