practicalli / practicalli/clojure

Clojure Idiom - tuple

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

Nobody has claimed this yet.

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

Description

A Tuple in Clojure is a very simple data structure, usually represented as two related values in a vector

[value1 value2]

The value of a tuple is in its simplicity, although greater responsibility is required to use the tuple values in the desired way.

The tuple provides less structure and meaning than a hash-map, as the values in the tuple have no explicit key (although the first value could be perceived as the key, but then a hash-map representation would feel more appropriate)

Review Clojure Design Club discussions on tuples for more examples of how they are used.

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.

Research direction

Review the existing Clojure idiom documentation structure and the Clojure Design Club discussions on tuples for examples and expected placement. Document how tuples are represented and how they differ from hash-maps; completion should leave the topic integrated into the appropriate documentation section.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.