Function split list to lists of length n.


/ Published in: Scheme
Save to your folder(s)

Function group-for which return list of list of length n.
(group-for '(1 2 3 4 5 6 7 8 9) 3)
=> ((1 2 3) (4 5 6) (7 8 9))

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.