What is the best way to get the first non nil value of several possible keys in a map.
Example:
(get-first-matching {:fum 4 :bar 41 :baz 45} [:foo :bar :baz])
;=> 41
some.
user=> (some {:fum 4 :bar 41 :baz 45} [:foo :bar :baz])
41
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With