I want foo
to accept two params and if the first one is :ok
it should return second param, otherwise first param.
I want to do it with pattern matching like this:
(defn foo [:ok val] (val))
(defn foo [key val] (key))
But it is not supported. Can I do it the similar way (using pattern matching or some kind of)?