Skip to content

Instantly share code, notes, and snippets.

@IwoHerka
Created June 20, 2019 17:12
Show Gist options
  • Save IwoHerka/0b657a31d5b581d99311d03e1c7477d1 to your computer and use it in GitHub Desktop.
Save IwoHerka/0b657a31d5b581d99311d03e1c7477d1 to your computer and use it in GitHub Desktop.
(defn reduce*
[f acc coll]
(if (empty? coll)
acc
(recur f (f acc (first coll)) (rest coll))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment