Skip to content

Instantly share code, notes, and snippets.

@thebusby
Created July 8, 2012 02:43
Show Gist options
  • Save thebusby/3069084 to your computer and use it in GitHub Desktop.
Save thebusby/3069084 to your computer and use it in GitHub Desktop.
(defn fold-into-vec [coll]
"Provided a reducer, concatenate into a vector.
Note: same as (into [] coll), but parallel."
(r/fold (r/monoid into vector) conj coll))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment