Skip to content

Instantly share code, notes, and snippets.

Created Aug 5, 2020
What would you like to do?
The Frugal Gentleman
(defn select-georges-wine [wines]
(condp = (count wines)
0 nil
1 (first wines)
(second (sort-by :price wines))))
(def choose-wine (comp :name select-georges-wine))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment