leanprover / leanprover/fp-lean

[Typo] 8.3.3. Exercises, array reversal

Open Beginner friendly
#248 2 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.