clojure icon indicating copy to clipboard operation
clojure copied to clipboard

Deconstructing Clojure data

Open practicalli-johnny opened this issue 4 years ago • 0 comments

All the many wonderful ways to deconstruct

destructure map keys from many namespaces like so : user=> (let [{:keys [:a/one :b/two three]} {:a/one 1 :b/two 2 :three 3}] [one two three]) ;; => [1 2 3]

also destructure like :a/keys to use the same namespace for multiple keys that share one

practicalli-johnny avatar Jul 03 '21 06:07 practicalli-johnny