How to bundle values into set length lists in Haskell?
|Added at||2017-01-04 13:01|
Trying to write a function in Haskell that bundles a list of xs into lists of size n e.g. the result of
I know the type should be
and needs to satisfy something like
but when I come to actually try to implement it I get stuck. I imagine I need to use foldl but can't think of what function to apply.