(defn bar[{:keys [a b] :as args}] (prn "got" args))
If we are calling the above function as
(bar {:a 1})
it returns
{:a 1}
nil
I want to have
{:a 1 :b nil}
(defn bar[{:keys [a b] :as args}] (prn "got" args))
If we are calling the above function as
(bar {:a 1})
it returns
{:a 1}
nil
I want to have
{:a 1 :b nil}
Not sure if it's worth the trouble, but you can get closer using the
vals->map
macro from the Tupelo library:with result: