zio / zio-prelude

A lightweight, distinctly Scala take on functional abstractions, with tight ZIO integration
https://zio.dev/zio-prelude
Apache License 2.0
450 stars 115 forks source link

Add forany1 and foranyPar1 to NonEmptyTraversable #427

Open sideeffffect opened 3 years ago

sideeffffect commented 3 years ago

Analogous to https://github.com/zio/zio-prelude/issues/392 But it should be able to return G[B] straight, without wrapping it in an Option.

adamgfraser commented 3 years ago

I think if we went with my proposal in #424 we wouldn't need this because None would represent there not being any "successful" value, which could occur if either the collection is empty or if all of the results are "failures".