← ZIO Prelude docs

ForEachOps

zio.prelude.ForEachSyntax.ForEachOps
implicit class ForEachOps[F[_], A](self: F[A])

Provides infix syntax for traversing collections.

Attributes

Source
ForEach.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def collect[B](pf: PartialFunction[A, B])(implicit F: ForEach[F], I: IdentityEither[F], B: IdentityBoth[F]): F[B]

Attributes

Source
ForEach.scala
def collectM[G[_] : IdentityBoth, B](f: A => G[Option[B]])(implicit evidence$1: IdentityBoth[G], evidence$2: Covariant[G], F: ForEach[F], I: IdentityEither[F], B: IdentityBoth[F]): G[F[B]]

Attributes

Source
ForEach.scala
def concatenate(implicit F: ForEach[F], A: Identity[A]): A

Attributes

Source
ForEach.scala
def contains[A1 >: A](a: A1)(implicit A: Equal[A1], F: ForEach[F]): Boolean

Attributes

Source
ForEach.scala
def count(f: A => Boolean)(implicit F: ForEach[F]): Int

Attributes

Source
ForEach.scala
def exists(f: A => Boolean)(implicit F: ForEach[F]): Boolean

Attributes

Source
ForEach.scala
def filter(f: A => Boolean)(implicit F: ForEach[F], I: IdentityEither[F], B: IdentityBoth[F]): F[A]

Attributes

Source
ForEach.scala
def filterM[G[_] : IdentityBoth](f: A => G[Boolean])(implicit evidence$1: IdentityBoth[G], evidence$2: Covariant[G], F: ForEach[F], I: IdentityEither[F], B: IdentityBoth[F]): G[F[A]]

Attributes

Source
ForEach.scala
def find(f: A => Boolean)(implicit F: ForEach[F]): Option[A]

Attributes

Source
ForEach.scala
def fold(implicit F: ForEach[F], I: Identity[A]): A

Attributes

Source
ForEach.scala
def foldLeft[S](s: S)(f: (S, A) => S)(implicit F: ForEach[F]): S

Attributes

Source
ForEach.scala
def foldLeftM[G[_] : Covariant, S](s: S)(f: (S, A) => G[S])(implicit evidence$1: IdentityFlatten[G], evidence$2: Covariant[G], F: ForEach[F]): G[S]

Attributes

Source
ForEach.scala
def foldMap[B : Identity](f: A => B)(implicit evidence$1: Identity[B], F: ForEach[F]): B

Attributes

Source
ForEach.scala
def foldMapM[G[_] : IdentityBoth, B : Identity](f: A => G[B])(implicit evidence$1: Covariant[G], evidence$2: IdentityBoth[G], evidence$3: Identity[B], F: ForEach[F]): G[B]

Attributes

Source
ForEach.scala
def foldRight[S](s: S)(f: (A, S) => S)(implicit F: ForEach[F]): S

Attributes

Source
ForEach.scala
def foldRightM[G[_] : Covariant, S](s: S)(f: (A, S) => G[S])(implicit evidence$1: IdentityFlatten[G], evidence$2: Covariant[G], F: ForEach[F]): G[S]

Attributes

Source
ForEach.scala
def forEach[G[_] : Covariant, B](f: A => G[B])(implicit evidence$1: IdentityBoth[G], evidence$2: Covariant[G], F: ForEach[F]): G[F[B]]

Attributes

Source
ForEach.scala
def forEachFlatten[G[_] : Covariant, B](f: A => G[F[B]])(implicit evidence$1: IdentityBoth[G], evidence$2: Covariant[G], F: ForEach[F], AF: AssociativeFlatten[F]): G[F[B]]

Attributes

Source
ForEach.scala
def forEach_[G[_] : Covariant](f: A => G[Any])(implicit evidence$1: IdentityBoth[G], evidence$2: Covariant[G], F: ForEach[F]): G[Unit]

Attributes

Source
ForEach.scala
def forall(f: A => Boolean)(implicit F: ForEach[F]): Boolean

Attributes

Source
ForEach.scala
def groupByNonEmpty[K](f: A => K)(implicit F: ForEach[F]): Map[K, NonEmptyChunk[A]]

Attributes

Source
ForEach.scala
def groupByNonEmptyM[G[_] : Covariant, K](f: A => G[K])(implicit evidence$1: IdentityBoth[G], evidence$2: Covariant[G], F: ForEach[F]): G[Map[K, NonEmptyChunk[A]]]

Attributes

Source
ForEach.scala
def intersperse[A1 >: A](middle: A1)(implicit F: ForEach[F], I: Identity[A1]): A1

Attributes

Source
ForEach.scala
def isEmpty(implicit F: ForEach[F]): Boolean

Attributes

Source
ForEach.scala
def mapAccum[S, B](s: S)(f: (S, A) => (S, B))(implicit F: ForEach[F]): (S, F[B])

Attributes

Source
ForEach.scala
def maxByOption[B : Ord](f: A => B)(implicit evidence$1: Ord[B], F: ForEach[F]): Option[A]

Attributes

Source
ForEach.scala
def maxOption(implicit A: Ord[A], F: ForEach[F]): Option[A]

Attributes

Source
ForEach.scala
def minByOption[B : Ord](f: A => B)(implicit evidence$1: Ord[B], F: ForEach[F]): Option[A]

Attributes

Source
ForEach.scala
def minOption(implicit A: Ord[A], F: ForEach[F]): Option[A]

Attributes

Source
ForEach.scala
def nonEmpty(implicit F: ForEach[F]): Boolean

Attributes

Source
ForEach.scala
def partitionMap[B, C](f: A => Either[B, C])(implicit F: ForEach[F], both: IdentityBoth[F], either: IdentityEither[F]): (F[B], F[C])

Attributes

Source
ForEach.scala
def partitionMapM[G[_] : IdentityBoth, B, C](f: A => G[Either[B, C]])(implicit evidence$1: IdentityBoth[G], evidence$2: Covariant[G], F: ForEach[F], both: IdentityBoth[F], either: IdentityEither[F]): G[(F[B], F[C])]

Attributes

Source
ForEach.scala
def partitionMapV[W, E, B](f: A => ZValidation[W, E, B])(implicit F: ForEach[F], both: IdentityBoth[F], either: IdentityEither[F]): (F[E], F[B])

Attributes

Source
ForEach.scala
def product(implicit A: Identity[subtypeF.Type[A]], F: ForEach[F]): A

Attributes

Source
ForEach.scala
def reduceAssociative(implicit F: ForEach[F], A: Associative[A]): Option[A]

Attributes

Source
ForEach.scala
def reduceIdempotent(implicit F: ForEach[F], ia: Idempotent[A], ea: Equal[A]): Option[A]

Attributes

Source
ForEach.scala
def reduceIdentity(implicit F: ForEach[F], A: Identity[A]): A

Attributes

Source
ForEach.scala
def reduceMapOption[B : Associative](f: A => B)(implicit evidence$1: Associative[B], F: ForEach[F]): Option[B]

Attributes

Source
ForEach.scala
def reduceOption(f: (A, A) => A)(implicit F: ForEach[F]): Option[A]

Attributes

Source
ForEach.scala
def reverse(implicit F: ForEach[F]): F[A]

Attributes

Source
ForEach.scala
def size(implicit F: ForEach[F]): Int

Attributes

Source
ForEach.scala
def sum(implicit A: Identity[subtypeF.Type[A]], F: ForEach[F]): A

Attributes

Source
ForEach.scala
def toChunk(implicit F: ForEach[F]): Chunk[A]

Attributes

Source
ForEach.scala
def withFilter(f: A => Boolean)(implicit F: ForEach[F], I: IdentityEither[F], B: IdentityBoth[F]): F[A]

Attributes

Source
ForEach.scala
def zipAll[B](that: F[B])(implicit F: ForEach[F], both: IdentityBoth[F], either: IdentityEither[F]): F[These[A, B]]

Attributes

Source
ForEach.scala
def zipAllWith[B, C](that: F[B])(f: (These[A, B]) => C)(implicit F: ForEach[F], both: IdentityBoth[F], either: IdentityEither[F]): F[C]

Attributes

Source
ForEach.scala
def zipWithIndex(implicit F: ForEach[F]): F[(A, Int)]

Attributes

Source
ForEach.scala