Add Built-Ins `fgroupsof` and `fwindowsof`
Open
feature
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
Not sure how to contribute exactly but I just had this cool idea inspired by `fmap`/`map`.
Typically when using `groupsof` or `windowsof` with strings, it's pretty common that you actually want to yield strings and not tuples of chars.
So for example `fgroupsof(3, "ABCDEFGH")` would yield `"ABC"`, `"DEF"`, `"GH"`.
Contributor guide
Research direction
Start by locating the existing `groupsof`, `windowsof`, `fmap`, and `map` built-in implementations and their tests. Confirm the desired string-yielding behavior, including the final shorter group, then add coverage for the examples in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100