Created
February 19, 2015 16:35
-
-
Save chrismo/809e901313061c0358a5 to your computer and use it in GitHub Desktop.
4clojure #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(fn [coll x] | |
(apply concat | |
(map | |
(fn [item] | |
(map | |
(fn [_] identity item) | |
(range x))) | |
coll))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i obviously didn't stumble across
mapcat
orrepeat
... :)