Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vasilmkd
Copy link
Contributor

Also improve stream test generators.

@iravid.

Copy link
Member

@iravid iravid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

*/
def foldLeft[A1 >: A, S](s: S)(f: (S, A1) => S): ZIO[R, E, S] =
fold[R, E, A1, S](s)(_ => true)((s, a) => ZIO.succeed(f(s, a)))
def foldLeft[S](s: S)(f: (S, A) => S): ZIO[R, E, S] =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why this had the A1 in the first place 🧐

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDE driven development? Joking.

@iravid iravid merged commit 9a3acfc into zio:master Sep 14, 2019
@vasilmkd vasilmkd deleted the streameffectchunk branch September 14, 2019 20:04
fsvehla pushed a commit to fsvehla/zio that referenced this pull request Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants