Join Slack
Communities
Powered by
What's the simplest way to turn a consecutive `Seq...
# random
t
thomasnield
05/06/2017, 4:59 AM
What's the simplest way to turn a consecutive
Sequence<T>
into a
Sequence<List<T>>
, where each
List<T>
is a consecutive batch of 10
T
items?
v
voddan
05/06/2017, 5:10 AM
thomasnield: it is comming in 1.2 :
https://github.com/Kotlin/KEEP/blob/master/proposals/stdlib/window-sliding.md
t
thomasnield
05/06/2017, 5:11 AM
Cool, I'll steal this implementation. Thanks!
Open in Slack
Previous
Next