leanprover / leanprover/fp-lean
[Typo] 8.3.3. Exercises, array reversal
Open
Beginner friendly
Nobody has claimed this yet.
Typo
- Dominant language
- Lean
- Stars
- 192
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
Reimplement array reversal using a for ... in ... loop in the identity monad. Compare it to the tail-recursive function.
Array reversal seems to not have been implemented in the book so far.
Contributor 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.
Research direction
Start by locating section 8.3.3, “Exercises, array reversal,” in the book source and read the surrounding identity-monad and tail-recursive examples. Add the requested for-in array-reversal exercise and its comparison with the tail-recursive function; done means the exercise is present and consistent with the surrounding material.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100