EXERCISE: Converting numbers to positions continued
Convert numbers to positions
Extend the positions function to include 2nd and 3rd
(defn position [number]
(if ;; condition
;; then
;; else
))
(position 2)
Hint
if expressions can be included inside another if expression
There is a better way..
Nesting if statements is not the preferred way to write code, so we will see alternative functions next