Skip to content

Instantly share code, notes, and snippets.

@chrismo
Created February 19, 2015 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrismo/809e901313061c0358a5 to your computer and use it in GitHub Desktop.
Save chrismo/809e901313061c0358a5 to your computer and use it in GitHub Desktop.
4clojure #33
(fn [coll x]
(apply concat
(map
(fn [item]
(map
(fn [_] identity item)
(range x)))
coll)))
@chrismo
Copy link
Author

chrismo commented Feb 19, 2015

i obviously didn't stumble across mapcat or repeat ... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment