leanprover / leanprover/fp-lean
Section 2.1.4. `dropRightWhile` is deprecated (Combining IO Actions)
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 192
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
In 2. Hello, World!, 2.1.4 (Combining IO Actions)
Deprecated function (dropRightWhile) usage:
let name := input.dropRightWhile Char.isWhitespace
Compiler output:
warning:
String.dropRightWhilehas been deprecated: UseString.dropEndWhileinstead
Note: The direct replacement, String.dropEndWhile returns a string slice instead of a string (returned by dropRightWhile). Using it would require an additional .copy call, which may be confusing and a clarification may be needed.
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 in 2. Hello, World!, section 2.1.4, where the dropRightWhile example appears. Review the replacement's String slice behavior, update the example and clarification so the deprecated warning is addressed, and confirm the section accurately explains any needed conversion.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100