Skip to content

Instantly share code, notes, and snippets.

@sritchie sritchie/coins.clj
Created Jul 10, 2011

What would you like to do?
(defn calc-coins [price amount-tendered]
{:mod (mod price amount-tendered)
:div (-> price (/ amount-tendered) int)}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.