You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It has also useful parameters for step size determining the shift of the window and partial sindows determining if leftover windows from the end which are of different size should also be returned.
It is immensely useful when items have to be compared sequentially in pairs/triplets etc. I miss it very much in lodash, so I hope this library could implement it at least. What do you think of it?
The text was updated successfully, but these errors were encountered:
Kotlin has
windowed
function which is a huge helper. It creates an interleaved windows from a collection for example:[1,2,3,4,5].windowed(2) -> [[1,2], [2,3], [3,4], [4,5]]
.It has also useful parameters for
step size
determining the shift of the window andpartial sindows
determining if leftover windows from the end which are of different size should also be returned.It is immensely useful when items have to be compared sequentially in pairs/triplets etc. I miss it very much in lodash, so I hope this library could implement it at least. What do you think of it?
The text was updated successfully, but these errors were encountered: