-
-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
What do you think about adding the following function?
chunksOf :: Int -> Slist a -> Slist (Slist a)
For ordinary lists it would work like this:
ghci> chunksOf 3 [0..7]
[[0,1,2], [3,4,5], [6,7]]
But since we have access to the list length, we can implement a more efficient version of chunksOf
.
vrom911
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request