Hi Jarkko, Am 18.07.2009 um 22:02 schrieb Jarkko Oranen:
That looks a lot like map destructuring, though: (let [{:keys [a b c]} {:a 1 :b 2 :c 3}] (list a b c)) -> (1 2 3)
Yes. But val-fn might also be exactly that: a function which gets the value by some others means than a map. I'm not sure about that, because OP named the argument val-fn, not val-map or so. If it's always a map, one could use map-destructuring, yes. Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature