I also noticed a difference. With a sequence, usin...
# getting-started
j
I also noticed a difference. With a sequence, using
.take(10)
, I got the first 10 prime numbers. When I called
.take(10)
again, it returned again the first 10 prime numbers, i.e. the sequence was reset. How does it work? The iterator worked as I expected it.