Make `init:S` a by name parameter in `mapAccumulate`?
Open
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 2.5k
- Forks
- 636
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 7
Description
def mapAccumulate[S, O2](init: S)(f: (S, O) => (S, O2)): Stream[F, (S, O2)]
to
def mapAccumulate[S, O2](init: => S)(f: (S, O) => (S, O2)): Stream[F, (S, O2)]
It's not a bug, have no idea it's labeled as bug
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
The issue proposes changing mapAccumulate's init parameter from strict to by-name in its public Scala signature. Review the existing mapAccumulate declaration and relevant API compatibility expectations; done means the intended signature is adopted without breaking the surrounding API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- stream-processing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100