[Haskell-cafe] list -> sublists
satorisanitarium
satorisanitarium at gmail.com
Tue Oct 20 10:16:43 EDT 2009
I just started learning haskell and I just came to my first wtf moment.
I'm trying to do something like this:
calling:
foo 3 [1,2,3,2,4,1,6,3,6,2,3,5,2,5,2,1,6,4]
returns:
[[1,2,3],[2,4,1,6,3],[2,3]]
but i have no idea how to put something into a sublist.
How to make a list of sublists out of a list, whether they be a list of
numbers or a string.
TX in advance.
--
View this message in context: http://www.nabble.com/list--%3E-sublists-tp25975341p25975341.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
More information about the Haskell-Cafe
mailing list