> (take 1000 (mapcat (fn [i] (repeat i (odd? i))) (range)))
And this example is suppoed to support Clojure's readability?
And this example is suppoed to support Clojure's readability?
You'd btw probably write it as.
(->> (range)
(map #(repeat % (odd? %)))
(apply concat)
(take 1000)
If you want it more readable.