Skip to content

Instantly share code, notes, and snippets.

@IwoHerka
Created June 20, 2019 17:14
Show Gist options
  • Save IwoHerka/39c42a4bd5d001216a3e5ac012d2ef44 to your computer and use it in GitHub Desktop.
Save IwoHerka/39c42a4bd5d001216a3e5ac012d2ef44 to your computer and use it in GitHub Desktop.
(defn filter*
[p coll]
(reduce* (fn [acc x] (if (p x) (conj acc x) acc)) [] coll))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment