do-notation for monads used in examples before it is introduced
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- documentation
Research direction
Read section 4.2.2, “The Identity Monad,” in the book source and locate the two mapM examples that use do notation. Check how the examples can be presented before section 4.4 introduces that notation. Done when both examples are understandable without relying on notation not yet introduced.
Written by the indexing model from the issue text.
Description
In section 4.2.2 The Identity Monad, two examples are using the do-notation :
def numbers := mapM (m := Id) (do return · + 1) [1, 2, 3, 4, 5]
def numbers := mapM (do return · + 1) [1, 2, 3, 4, 5]
but that notation is only introduced later in the book (namely in 4.4. do-Notation for Monads), which makes those examples unhelpful and confusing.
- Dominant language
- Lean
- Stars
- 211
- Forks
- 83
- Avg merge
- 8m
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from leanprover/fp-lean
-
Typo
Difficulty 1/5 Under an hour Newbie friendliness 90/100
leanprover/fp-lean#311 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
leanprover/fp-lean#304 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
leanprover/fp-lean#303 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
leanprover/fp-lean#301 · 1 comment ·
-
UnusedVariable warning in Point3D pattern matching example (depth function) 1.5.1. Pattern MatchingOpen
Difficulty 1/5 Under an hour Newbie friendliness 90/100
leanprover/fp-lean#298 ·
All issues in leanprover/fp-lean
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
優先度たかし
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
lean-ja/lean-by-example#2681 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
laststance/design-world#79 ·
Maintainers usually reply within 1 day
-
v2
Difficulty 1/5 Under an hour Newbie friendliness 86/100
modelcontextprotocol/python-sdk#3978 · 2 comments ·
Maintainers usually reply within 1 day