Skip to content

Instantly share code, notes, and snippets.

@ctdean
Created January 28, 2010 23:19
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 ctdean/289265 to your computer and use it in GitHub Desktop.
Save ctdean/289265 to your computer and use it in GitHub Desktop.
(defn lazy-map-cat [f colls]
(letfn [(cat [seqs]
(lazy-cat
(and (seq seqs)
(concat (first seqs)
(cat (rest seqs))))))]
(cat (map f colls))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment