Skip to content

Instantly share code, notes, and snippets.

@simonjefford
Created September 5, 2012 16:45
Show Gist options
  • Save simonjefford/3639695 to your computer and use it in GitHub Desktop.
Save simonjefford/3639695 to your computer and use it in GitHub Desktop.
(fn [coll n]
(loop [output [] input coll]
(if (seq input)
(recur (concat output (repeat n (first input))) (next input))
output)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment