Created
October 1, 2012 21:23
-
-
Save jcromartie/3814519 to your computer and use it in GitHub Desktop.
Naive parallel filter
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
(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