Skip to content

Instantly share code, notes, and snippets.

@sztamas
Created Aug 5, 2020
Embed
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