implicit class AssociativeBothCovariantOps[F[+_], A] extends AnyRef
Provides infix syntax for associative operations for covariant types.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- AssociativeBothCovariantOps
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new AssociativeBothCovariantOps(fa: => F[A])
Value Members
- def *>[B](fb: => F[B])(implicit both: AssociativeBoth[F], covariant: Covariant[F]): F[B]
A symbolic alias for
zipRight
. - def <*[B](fb: => F[B])(implicit both: AssociativeBoth[F], covariant: Covariant[F]): F[A]
A symbolic alias for
zipLeft
. - def forever(implicit both: AssociativeBoth[F], covariant: Covariant[F]): F[A]
Combines an
F[A]
value with itself usingzipRight
forever. - def zipLeft[B](fb: => F[B])(implicit both: AssociativeBoth[F], covariant: Covariant[F]): F[A]
Combines two values of types
F[A]
andF[B]
to produce anF[(A, B)]
, keeping only the left value. - def zipRight[B](fb: => F[B])(implicit both: AssociativeBoth[F], covariant: Covariant[F]): F[B]
Combines two values of types
F[A]
andF[B]
to produce anF[(A, B)]
, keeping only the right value. - def zipWith[B, C](fb: => F[B])(f: (A, B) => C)(implicit both: AssociativeBoth[F], covariant: Covariant[F]): F[C]
Combines two values of types
F[A]
andF[B]
to produce anF[(A, B)]
and then maps the result with the specified function.