;; Turns a flat-list into a list of n-sized lists
;; Examples:
;;   (group-by '(1 2 3 4) 2) => ((1 2) (3 4))
...

Lisp Group-by

by omouse.vox.com, December 21, 2007 19:55, 5 refactorings, tagged with scheme, lists, flatlist, group

Tested on MzScheme

55502f40dc8b7c769880b10874abc9d0 Talk