typelevel / typelevel/fs2

Make `init:S` a by name parameter in `mapAccumulate`?

Open
#2,985 0 comments 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.