Skip to content

Instantly share code, notes, and snippets.

@dvliman
Created August 27, 2024 16:07
Show Gist options
  • Save dvliman/d3e015fb667253c543af3b2318acd8b0 to your computer and use it in GitHub Desktop.
Save dvliman/d3e015fb667253c543af3b2318acd8b0 to your computer and use it in GitHub Desktop.
(defn calculate-loan-size
[loan-amount]
(cond
#d (between 1 loan-amount 10000) :small
#d (between 10001 loan-amount 50000) :modest
#d (between 50001 loan-amount 150000) :large
#d (>= loan-amount 150001) :jumbo))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment