Skip to content

Deconstructing Clojure data #386

Open
@practicalli-johnny

Description

@practicalli-johnny

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions