Fundamentals9 / 11
Up next

cond

;; cond tries tests in order and takes the first truthy one
(defn grade [score]
  (cond
    (>= score 90) "A"
    (>= score 80) "B"
    (>= score 70) "C"
    :else         "F"))

(println (grade 85))
What you're solving

choose the first truthy branch