Skip to content

Instantly share code, notes, and snippets.

@kitofr
Created July 15, 2011 14:24
Show Gist options
  • Save kitofr/1084784 to your computer and use it in GitHub Desktop.
Save kitofr/1084784 to your computer and use it in GitHub Desktop.
#(loop [coll %1 n %2 c ()]
(if (empty? coll)
(reverse c)
(recur (rest coll) n (into c (repeat n (first coll))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment