is there anything like rx’s .buffer() for kotlin’s...
# rx
c
is there anything like rx’s .buffer() for kotlin’s sequence / iterable?
g
But sequence and iterable are completely syncronous, they are pull based, not push based as rx How do you expect this should work? You can use take(N) to get required amount of items, it's closest what I can imagine to buffer (but pretty different)
g
You can use
.chunked(n)
if what you want is to group into lists of
n
items
👍 1
c
^ exactly what i was looking for. thanks!
^ and the terminology makes sense too since it’s synchronous