|
|
|
|
|
by pinchhit
1991 days ago
|
|
I think Rich's point may be specific to Java switch statements and their limitations. (I know he's familiar with MLs, but I would imagine his frame of reference is mostly colored by Java's control structures.) The idiomatic clojure for your color example would leverage names in the same way: (defn color-function [{:keys [r g b]}]
(* r g b))
|
|