Deconstructing Clojure data

Open
#386 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
clojure
Domain
documentation

Research direction

The issue names no file, test, or entry point. Start by locating the repository’s existing material on Clojure destructuring, then document namespaced map-key destructuring and :a/keys with examples, including the expected bindings shown in the issue.

Written by the indexing model from the issue text.

Description

clojure-core idiom

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

Dominant language
Makefile
Stars
117
Forks
36
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from practicalli/clojure

All issues in practicalli/clojure

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.