NonEmptyParallel

trait NonEmptyParallel[M[_]] extends Serializable

Some types that form a FlatMap, are also capable of forming an Apply that supports parallel composition. The NonEmptyParallel type class allows us to represent this relationship.

Some types that form a FlatMap, are also capable of forming an Apply that supports parallel composition. The NonEmptyParallel type class allows us to represent this relationship.

Companion
object
trait Serializable
class Object
trait Matchable
class Any
trait Parallel[M]

Type members

Types

type F[`_$2`]

Value members

Abstract methods

def apply: Apply[F]

The Apply instance for F[_]

The Apply instance for F[_]

def flatMap: FlatMap[M]

The FlatMap instance for M[_]

The FlatMap instance for M[_]

def parallel: FunctionK[M, F]

Natural Transformation from the sequential FlatMap M[_] to the parallel Apply F[_].

Natural Transformation from the sequential FlatMap M[_] to the parallel Apply F[_].

Natural Transformation from the parallel Apply F[_] to the sequential FlatMap M[_].

Natural Transformation from the parallel Apply F[_] to the sequential FlatMap M[_].

Concrete methods

def parProductL[A, B](ma: M[A])(mb: M[B]): M[A]

Like Apply.productL, but uses the apply instance corresponding to the Parallel instance instead.

Like Apply.productL, but uses the apply instance corresponding to the Parallel instance instead.

def parProductR[A, B](ma: M[A])(mb: M[B]): M[B]

Like Apply.productR, but uses the apply instance corresponding to the Parallel instance instead.

Like Apply.productR, but uses the apply instance corresponding to the Parallel instance instead.