does kotlin have it’s own version of IntStream.ite...
# language-proposals
x
does kotlin have it’s own version of IntStream.iterate ?
f
doesn't look like it, what's wrong with Java's?
i
from an MPP perspective I think you could replicate the functionality with an iterator
x
@fred.deschenes nothing, but sometimes kotlin has nicer toys
i
well look at that
r
There's also
IntRange
and `IntProgression.step(Int)`:
(0..10 step 3).map { it * 2 }.forEach { println(it) }
. Not as generic as
generateSequence
, but may be of use.
b
#general or #stdlib would be more appropriate for this question
3
x
@benleggiero yeah I didn’t realize I wasn’t in general when I asked, too bad you can’t move threads eh?
b
oh yeah lol