Skip to content

Instantly share code, notes, and snippets.

@jcromartie
Created October 1, 2012 21:23
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 jcromartie/3814519 to your computer and use it in GitHub Desktop.
Save jcromartie/3814519 to your computer and use it in GitHub Desktop.
Naive parallel filter
(defn pfilter
[f coll]
(filter identity (map #(when %1 %2)
(pmap f coll)
coll)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment