Raku / Raku/doc

“Identity element” section with an explanation and a table of Raku ops

Open
#2,129 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs new
Dominant language
Raku
Stars
308
Forks
288
Avg merge
3d 49m
Merged PRs (30d)
2

Description

See https://en.wikipedia.org/wiki/Identity_element.

I think this should be discussed in Perl 6 docs (not just linked to wikipedia). We can have a similar table that specifically lists perl 6 ops.

For example, identity element for ~ is an empty string (""), even though ~ can be used for Blobs. There's a separate trap for that particular detail (see #2124), but it should be discussed in main docs also in context of identity elements (or maybe reduction).

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

Start by reviewing the linked Wikipedia explanation and the existing Raku documentation around operators and reduction metaoperators. The work is done when the docs contain an explanation of identity elements and a table of Raku ops, including the empty-string identity for ~, while accounting for the related detail in #2124.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.