https://kotlinlang.org logo
#getting-started
Title
# getting-started
d

diesieben07

05/02/2018, 2:05 PM
You have to keep using the same `Iterator`:
Copy code
val it = seq.iterator()
it.asSequence().take(3).toList() // [1, 2, 3]
it.asSequence().take(3).toList() // [4, 5, 6]
👍 1