Skip to content

Instantly share code, notes, and snippets.

@rentalcustard
Last active August 29, 2015 14:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rentalcustard/6e683c4e959f1aa6856b to your computer and use it in GitHub Desktop.
Save rentalcustard/6e683c4e959f1aa6856b to your computer and use it in GitHub Desktop.
;original
(filter filter-fn some-collection)
;parallel filter
(map :val (filter (fn [m] (:allowed-by-filter m))
(pmap (fn [v] {:val s :allowed-by-filter (filter-fn v)}) some-collection)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment