Monad_PatchStreamT

given Monad_PatchStreamT[M[_]](using val M: Nondeterminism[M]): Monad[[X] =>> PatchStreamT[M, X]]

Type members

Inherited classlikes

Inherited from
Applicative
trait ApplyLaw
Inherited from
Apply
trait BindLaw
Inherited from
Bind
Inherited from
Functor
trait MonadLaw
Inherited from
Monad

Value members

Concrete methods

def bind[A, B](upstream: PatchStreamT[M, A])(f: A => PatchStreamT[M, B]): PatchStreamT[M, B]
def point[A](a: => A): PatchStreamT[M, A]

Inherited methods

override
def ap[A, B](fa: => PatchStreamT[M, A])(f: => PatchStreamT[M, A => B]): PatchStreamT[M, B]
Definition Classes
Bind -> Apply
Inherited from
Bind
def ap2[A, B, C](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B])(f: PatchStreamT[M, (A, B) => C]): PatchStreamT[M, C]
Inherited from
Apply
def ap3[A, B, C, D](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C])(f: PatchStreamT[M, (A, B, C) => D]): PatchStreamT[M, D]
Inherited from
Apply
def ap4[A, B, C, D, E](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D])(f: PatchStreamT[M, (A, B, C, D) => E]): PatchStreamT[M, E]
Inherited from
Apply
def ap5[A, B, C, D, E, R](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E])(f: PatchStreamT[M, (A, B, C, D, E) => R]): PatchStreamT[M, R]
Inherited from
Apply
def ap6[A, B, C, D, E, FF, R](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E], ff: => PatchStreamT[M, FF])(f: PatchStreamT[M, (A, B, C, D, E, FF) => R]): PatchStreamT[M, R]
Inherited from
Apply
def ap7[A, B, C, D, E, FF, G, R](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E], ff: => PatchStreamT[M, FF], fg: => PatchStreamT[M, G])(f: PatchStreamT[M, (A, B, C, D, E, FF, G) => R]): PatchStreamT[M, R]
Inherited from
Apply
def ap8[A, B, C, D, E, FF, G, H, R](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E], ff: => PatchStreamT[M, FF], fg: => PatchStreamT[M, G], fh: => PatchStreamT[M, H])(f: PatchStreamT[M, (A, B, C, D, E, FF, G, H) => R]): PatchStreamT[M, R]
Inherited from
Apply
def apF[A, B](f: => PatchStreamT[M, A => B]): PatchStreamT[M, A] => PatchStreamT[M, B]

Flipped variant of ap.

Flipped variant of ap.

Inherited from
Apply
Inherited from
Applicative
def apply[A, B](fa: PatchStreamT[M, A])(f: A => B): PatchStreamT[M, B]

Alias for map.

Alias for map.

Inherited from
Functor
def apply10[A, B, C, D, E, FF, G, H, I, J, R](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E], ff: => PatchStreamT[M, FF], fg: => PatchStreamT[M, G], fh: => PatchStreamT[M, H], fi: => PatchStreamT[M, I], fj: => PatchStreamT[M, J])(f: (A, B, C, D, E, FF, G, H, I, J) => R): PatchStreamT[M, R]
Inherited from
Apply
def apply11[A, B, C, D, E, FF, G, H, I, J, K, R](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E], ff: => PatchStreamT[M, FF], fg: => PatchStreamT[M, G], fh: => PatchStreamT[M, H], fi: => PatchStreamT[M, I], fj: => PatchStreamT[M, J], fk: => PatchStreamT[M, K])(f: (A, B, C, D, E, FF, G, H, I, J, K) => R): PatchStreamT[M, R]
Inherited from
Apply
def apply12[A, B, C, D, E, FF, G, H, I, J, K, L, R](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E], ff: => PatchStreamT[M, FF], fg: => PatchStreamT[M, G], fh: => PatchStreamT[M, H], fi: => PatchStreamT[M, I], fj: => PatchStreamT[M, J], fk: => PatchStreamT[M, K], fl: => PatchStreamT[M, L])(f: (A, B, C, D, E, FF, G, H, I, J, K, L) => R): PatchStreamT[M, R]
Inherited from
Apply
override
def apply2[A, B, C](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B])(f: (A, B) => C): PatchStreamT[M, C]
Definition Classes
Bind -> Apply
Inherited from
Bind
def apply3[A, B, C, D](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C])(f: (A, B, C) => D): PatchStreamT[M, D]
Inherited from
Apply
def apply4[A, B, C, D, E](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D])(f: (A, B, C, D) => E): PatchStreamT[M, E]
Inherited from
Apply
def apply5[A, B, C, D, E, R](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E])(f: (A, B, C, D, E) => R): PatchStreamT[M, R]
Inherited from
Apply
def apply6[A, B, C, D, E, FF, R](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E], ff: => PatchStreamT[M, FF])(f: (A, B, C, D, E, FF) => R): PatchStreamT[M, R]
Inherited from
Apply
def apply7[A, B, C, D, E, FF, G, R](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E], ff: => PatchStreamT[M, FF], fg: => PatchStreamT[M, G])(f: (A, B, C, D, E, FF, G) => R): PatchStreamT[M, R]
Inherited from
Apply
def apply8[A, B, C, D, E, FF, G, H, R](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E], ff: => PatchStreamT[M, FF], fg: => PatchStreamT[M, G], fh: => PatchStreamT[M, H])(f: (A, B, C, D, E, FF, G, H) => R): PatchStreamT[M, R]
Inherited from
Apply
def apply9[A, B, C, D, E, FF, G, H, I, R](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E], ff: => PatchStreamT[M, FF], fg: => PatchStreamT[M, G], fh: => PatchStreamT[M, H], fi: => PatchStreamT[M, I])(f: (A, B, C, D, E, FF, G, H, I) => R): PatchStreamT[M, R]
Inherited from
Apply
def applyApplicative: Applicative[[α] =>> PatchStreamT[M, α] \/ α]

Add a unit to any Apply to form an Applicative.

Add a unit to any Apply to form an Applicative.

Inherited from
Apply
Inherited from
Apply
final
def applying1[Z, A1](f: A1 => Z)(implicit a1: PatchStreamT[M, A1]): PatchStreamT[M, Z]
Inherited from
Apply
final
def applying2[Z, A1, A2](f: (A1, A2) => Z)(implicit a1: PatchStreamT[M, A1], a2: PatchStreamT[M, A2]): PatchStreamT[M, Z]
Inherited from
Apply
final
def applying3[Z, A1, A2, A3](f: (A1, A2, A3) => Z)(implicit a1: PatchStreamT[M, A1], a2: PatchStreamT[M, A2], a3: PatchStreamT[M, A3]): PatchStreamT[M, Z]
Inherited from
Apply
final
def applying4[Z, A1, A2, A3, A4](f: (A1, A2, A3, A4) => Z)(implicit a1: PatchStreamT[M, A1], a2: PatchStreamT[M, A2], a3: PatchStreamT[M, A3], a4: PatchStreamT[M, A4]): PatchStreamT[M, Z]
Inherited from
Apply
def bicompose[G[_, _] : Bifunctor]: Bifunctor[[α, β] =>> PatchStreamT[M, G[α, β]]]

The composition of Functor F and Bifunctor G, [x, y]F[G[x, y]], is a Bifunctor

The composition of Functor F and Bifunctor G, [x, y]F[G[x, y]], is a Bifunctor

Inherited from
Functor
Inherited from
Bind
def compose[G[_]](implicit G0: Apply[G]): Apply[[α] =>> PatchStreamT[M, G[α]]]

The composition of Applys F and G, [x]F[G[x]], is a Apply

The composition of Applys F and G, [x]F[G[x]], is a Apply

Inherited from
Apply
def compose[G[_]](implicit G0: Functor[G]): Functor[[α] =>> PatchStreamT[M, G[α]]]

The composition of Functors F and G, [x]F[G[x]], is a Functor

The composition of Functors F and G, [x]F[G[x]], is a Functor

Inherited from
Functor
def compose[G[_]](implicit G0: Applicative[G]): Applicative[[α] =>> PatchStreamT[M, G[α]]]

The composition of Applicatives F and G, [x]F[G[x]], is an Applicative

The composition of Applicatives F and G, [x]F[G[x]], is an Applicative

Inherited from
Applicative
def counzip[A, B](a: PatchStreamT[M, A] \/ PatchStreamT[M, B]): PatchStreamT[M, A \/ B]
Inherited from
Functor
def discardLeft[A, B](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B]): PatchStreamT[M, B]

Combine fa and fb according to Apply[F] with a function that discards the A(s)

Combine fa and fb according to Apply[F] with a function that discards the A(s)

Inherited from
Apply
def discardRight[A, B](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B]): PatchStreamT[M, A]

Combine fa and fb according to Apply[F] with a function that discards the B(s)

Combine fa and fb according to Apply[F] with a function that discards the B(s)

Inherited from
Apply
def filterM[A](l: IList[A])(f: A => PatchStreamT[M, Boolean]): PatchStreamT[M, IList[A]]

Filter l according to an applicative predicate.

Filter l according to an applicative predicate.

Inherited from
Applicative
def filterM[A](l: List[A])(f: A => PatchStreamT[M, Boolean]): PatchStreamT[M, List[A]]

Filter l according to an applicative predicate.

Filter l according to an applicative predicate.

Inherited from
Applicative
def filterM[A, B](map: A ==>> B)(f: B => PatchStreamT[M, Boolean])(implicit O: Order[A]): PatchStreamT[M, A ==>> B]

Filter map according to an applicative predicate. *

Filter map according to an applicative predicate. *

Inherited from
Applicative
override
def flip: Applicative[[X] =>> PatchStreamT[M, X]]

An Applicative for F in which effects happen in the opposite order.

An Applicative for F in which effects happen in the opposite order.

Definition Classes
Applicative -> Apply
Inherited from
Applicative
def forever[A, B](fa: PatchStreamT[M, A]): PatchStreamT[M, B]

Repeats an applicative action infinitely

Repeats an applicative action infinitely

Inherited from
Apply
def fpair[A](fa: PatchStreamT[M, A]): PatchStreamT[M, (A, A)]

Twin all As in fa.

Twin all As in fa.

Inherited from
Functor
def fproduct[A, B](fa: PatchStreamT[M, A])(f: A => B): PatchStreamT[M, (A, B)]

Pair all As in fa with the result of function application.

Pair all As in fa with the result of function application.

Inherited from
Functor
Inherited from
Functor
def icompose[G[_]](implicit G0: Contravariant[G]): Contravariant[[α] =>> PatchStreamT[M, G[α]]]

The composition of Functor F and Contravariant G, [x]F[G[x]], is contravariant.

The composition of Functor F and Contravariant G, [x]F[G[x]], is contravariant.

Inherited from
Functor
def ifM[B](value: PatchStreamT[M, Boolean], ifTrue: => PatchStreamT[M, B], ifFalse: => PatchStreamT[M, B]): PatchStreamT[M, B]

if lifted into a binding. Unlike lift3((t,c,a)=>if(t)c else a), this will only include context from the chosen of ifTrue and ifFalse, not the other.

if lifted into a binding. Unlike lift3((t,c,a)=>if(t)c else a), this will only include context from the chosen of ifTrue and ifFalse, not the other.

Inherited from
Bind
Inherited from
InvariantFunctor
def iterateUntil[A](f: PatchStreamT[M, A])(p: A => Boolean): PatchStreamT[M, A]

Execute an action repeatedly until its result satisfies the given predicate and return that result, discarding all others.

Execute an action repeatedly until its result satisfies the given predicate and return that result, discarding all others.

Inherited from
Monad
def iterateWhile[A](f: PatchStreamT[M, A])(p: A => Boolean): PatchStreamT[M, A]

Execute an action repeatedly until its result fails to satisfy the given predicate and return that result, discarding all others.

Execute an action repeatedly until its result fails to satisfy the given predicate and return that result, discarding all others.

Inherited from
Monad
def join[A](ffa: PatchStreamT[M, PatchStreamT[M, A]]): PatchStreamT[M, A]

Sequence the inner F of FFA after the outer F, forming a single F[A].

Sequence the inner F of FFA after the outer F, forming a single F[A].

Inherited from
Bind
def lift[A, B](f: A => B): PatchStreamT[M, A] => PatchStreamT[M, B]

Lift f into F.

Lift f into F.

Inherited from
Functor
def lift10[A, B, C, D, E, FF, G, H, I, J, R](f: (A, B, C, D, E, FF, G, H, I, J) => R): (PatchStreamT[M, A], PatchStreamT[M, B], PatchStreamT[M, C], PatchStreamT[M, D], PatchStreamT[M, E], PatchStreamT[M, FF], PatchStreamT[M, G], PatchStreamT[M, H], PatchStreamT[M, I], PatchStreamT[M, J]) => PatchStreamT[M, R]
Inherited from
Apply
def lift11[A, B, C, D, E, FF, G, H, I, J, K, R](f: (A, B, C, D, E, FF, G, H, I, J, K) => R): (PatchStreamT[M, A], PatchStreamT[M, B], PatchStreamT[M, C], PatchStreamT[M, D], PatchStreamT[M, E], PatchStreamT[M, FF], PatchStreamT[M, G], PatchStreamT[M, H], PatchStreamT[M, I], PatchStreamT[M, J], PatchStreamT[M, K]) => PatchStreamT[M, R]
Inherited from
Apply
def lift12[A, B, C, D, E, FF, G, H, I, J, K, L, R](f: (A, B, C, D, E, FF, G, H, I, J, K, L) => R): (PatchStreamT[M, A], PatchStreamT[M, B], PatchStreamT[M, C], PatchStreamT[M, D], PatchStreamT[M, E], PatchStreamT[M, FF], PatchStreamT[M, G], PatchStreamT[M, H], PatchStreamT[M, I], PatchStreamT[M, J], PatchStreamT[M, K], PatchStreamT[M, L]) => PatchStreamT[M, R]
Inherited from
Apply
def lift2[A, B, C](f: (A, B) => C): (PatchStreamT[M, A], PatchStreamT[M, B]) => PatchStreamT[M, C]
Inherited from
Apply
def lift3[A, B, C, D](f: (A, B, C) => D): (PatchStreamT[M, A], PatchStreamT[M, B], PatchStreamT[M, C]) => PatchStreamT[M, D]
Inherited from
Apply
def lift4[A, B, C, D, E](f: (A, B, C, D) => E): (PatchStreamT[M, A], PatchStreamT[M, B], PatchStreamT[M, C], PatchStreamT[M, D]) => PatchStreamT[M, E]
Inherited from
Apply
def lift5[A, B, C, D, E, R](f: (A, B, C, D, E) => R): (PatchStreamT[M, A], PatchStreamT[M, B], PatchStreamT[M, C], PatchStreamT[M, D], PatchStreamT[M, E]) => PatchStreamT[M, R]
Inherited from
Apply
def lift6[A, B, C, D, E, FF, R](f: (A, B, C, D, E, FF) => R): (PatchStreamT[M, A], PatchStreamT[M, B], PatchStreamT[M, C], PatchStreamT[M, D], PatchStreamT[M, E], PatchStreamT[M, FF]) => PatchStreamT[M, R]
Inherited from
Apply
def lift7[A, B, C, D, E, FF, G, R](f: (A, B, C, D, E, FF, G) => R): (PatchStreamT[M, A], PatchStreamT[M, B], PatchStreamT[M, C], PatchStreamT[M, D], PatchStreamT[M, E], PatchStreamT[M, FF], PatchStreamT[M, G]) => PatchStreamT[M, R]
Inherited from
Apply
def lift8[A, B, C, D, E, FF, G, H, R](f: (A, B, C, D, E, FF, G, H) => R): (PatchStreamT[M, A], PatchStreamT[M, B], PatchStreamT[M, C], PatchStreamT[M, D], PatchStreamT[M, E], PatchStreamT[M, FF], PatchStreamT[M, G], PatchStreamT[M, H]) => PatchStreamT[M, R]
Inherited from
Apply
def lift9[A, B, C, D, E, FF, G, H, I, R](f: (A, B, C, D, E, FF, G, H, I) => R): (PatchStreamT[M, A], PatchStreamT[M, B], PatchStreamT[M, C], PatchStreamT[M, D], PatchStreamT[M, E], PatchStreamT[M, FF], PatchStreamT[M, G], PatchStreamT[M, H], PatchStreamT[M, I]) => PatchStreamT[M, R]
Inherited from
Apply
def liftReducer[A, B](implicit r: Reducer[A, B]): Reducer[PatchStreamT[M, A], PatchStreamT[M, B]]
Inherited from
Apply
override
def map[A, B](fa: PatchStreamT[M, A])(f: A => B): PatchStreamT[M, B]
Definition Classes
Monad -> Applicative -> Functor
Inherited from
Monad
def mapply[A, B](a: A)(f: PatchStreamT[M, A => B]): PatchStreamT[M, B]

Lift apply(a), and apply the result to f.

Lift apply(a), and apply the result to f.

Inherited from
Functor
Inherited from
Monad
def mproduct[A, B](fa: PatchStreamT[M, A])(f: A => PatchStreamT[M, B]): PatchStreamT[M, (A, B)]

Pair A with the result of function application.

Pair A with the result of function application.

Inherited from
Bind
def par: Par[[X] =>> PatchStreamT[M, X]]

A lawful implementation of this that is isomorphic up to the methods defined on Applicative allowing for optimised parallel implementations that would otherwise violate laws of more specific typeclasses (e.g. Monad).

A lawful implementation of this that is isomorphic up to the methods defined on Applicative allowing for optimised parallel implementations that would otherwise violate laws of more specific typeclasses (e.g. Monad).

Inherited from
Applicative
def plusA[A](x: => PatchStreamT[M, A], y: => PatchStreamT[M, A])(implicit sa: Semigroup[A]): PatchStreamT[M, A]

Semigroups can be added within an Applicative

Semigroups can be added within an Applicative

Inherited from
Applicative
def product[G[_]](implicit G0: Monad[G]): Monad[[α] =>> (PatchStreamT[M, α], G[α])]

The product of Monad F and G, [x](F[x], G[x]]), is a Monad

The product of Monad F and G, [x](F[x], G[x]]), is a Monad

Inherited from
Monad
def product[G[_]](implicit G0: Bind[G]): Bind[[α] =>> (PatchStreamT[M, α], G[α])]

The product of Bind F and G, [x](F[x], G[x]]), is a Bind

The product of Bind F and G, [x](F[x], G[x]]), is a Bind

Inherited from
Bind
def product[G[_]](implicit G0: Apply[G]): Apply[[α] =>> (PatchStreamT[M, α], G[α])]

The product of Applys F and G, [x](F[x], G[x]]), is a Apply

The product of Applys F and G, [x](F[x], G[x]]), is a Apply

Inherited from
Apply
def product[G[_]](implicit G0: Functor[G]): Functor[[α] =>> (PatchStreamT[M, α], G[α])]

The product of Functors F and G, [x](F[x], G[x]]), is a Functor

The product of Functors F and G, [x](F[x], G[x]]), is a Functor

Inherited from
Functor
def product[G[_]](implicit G0: Applicative[G]): Applicative[[α] =>> (PatchStreamT[M, α], G[α])]

The product of Applicatives F and G, [x](F[x], G[x]]), is an Applicative

The product of Applicatives F and G, [x](F[x], G[x]]), is an Applicative

Inherited from
Applicative
final
def pure[A](a: => A): PatchStreamT[M, A]
Inherited from
Applicative
def replicateM[A](n: Int, fa: PatchStreamT[M, A]): PatchStreamT[M, IList[A]]

Performs the action n times, returning the list of results.

Performs the action n times, returning the list of results.

Inherited from
Applicative
def replicateM_[A](n: Int, fa: PatchStreamT[M, A]): PatchStreamT[M, Unit]

Performs the action n times, returning nothing.

Performs the action n times, returning nothing.

Inherited from
Applicative
def sequence[A, G[_] : Traverse](as: G[PatchStreamT[M, A]]): PatchStreamT[M, G[A]]
Inherited from
Applicative
def sequence1[A, G[_] : Traverse1](as: G[PatchStreamT[M, A]]): PatchStreamT[M, G[A]]
Inherited from
Apply
def strengthL[A, B](a: A, f: PatchStreamT[M, B]): PatchStreamT[M, (A, B)]

Inject a to the left of Bs in f.

Inject a to the left of Bs in f.

Inherited from
Functor
def strengthR[A, B](f: PatchStreamT[M, A], b: B): PatchStreamT[M, (A, B)]

Inject b to the right of As in f.

Inject b to the right of As in f.

Inherited from
Functor
def traverse[A, G[_], B](value: G[A])(f: A => PatchStreamT[M, B])(implicit G: Traverse[G]): PatchStreamT[M, G[B]]
Inherited from
Applicative
def traverse1[A, G[_], B](value: G[A])(f: A => PatchStreamT[M, B])(implicit G: Traverse1[G]): PatchStreamT[M, G[B]]
Inherited from
Apply
def tuple2[A, B](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B]): PatchStreamT[M, (A, B)]
Inherited from
Apply
def tuple3[A, B, C](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C]): PatchStreamT[M, (A, B, C)]
Inherited from
Apply
def tuple4[A, B, C, D](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D]): PatchStreamT[M, (A, B, C, D)]
Inherited from
Apply
def tuple5[A, B, C, D, E](fa: => PatchStreamT[M, A], fb: => PatchStreamT[M, B], fc: => PatchStreamT[M, C], fd: => PatchStreamT[M, D], fe: => PatchStreamT[M, E]): PatchStreamT[M, (A, B, C, D, E)]
Inherited from
Apply
def unfoldrOpt[S, A, B](seed: S)(f: S => Maybe[(PatchStreamT[M, A], S)])(implicit R: Reducer[A, B]): Maybe[PatchStreamT[M, B]]

Unfold seed to the right and combine effects left-to-right, using the given Reducer to combine values. Implementations may override this method to not unfold more than is necessary to determine the result.

Unfold seed to the right and combine effects left-to-right, using the given Reducer to combine values. Implementations may override this method to not unfold more than is necessary to determine the result.

Inherited from
Apply
def unlessM[A](cond: Boolean)(f: => PatchStreamT[M, A]): PatchStreamT[M, Unit]

Returns the given argument if cond is false, otherwise, unit lifted into F.

Returns the given argument if cond is false, otherwise, unit lifted into F.

Inherited from
Applicative
def untilM[G[_], A](f: PatchStreamT[M, A], cond: => PatchStreamT[M, Boolean])(implicit G: MonadPlus[G]): PatchStreamT[M, G[A]]

Execute an action repeatedly until the Boolean condition returns true. The condition is evaluated after the loop body. Collects results into an arbitrary MonadPlus value, such as a List.

Execute an action repeatedly until the Boolean condition returns true. The condition is evaluated after the loop body. Collects results into an arbitrary MonadPlus value, such as a List.

Inherited from
Monad
def untilM_[A](f: PatchStreamT[M, A], cond: => PatchStreamT[M, Boolean]): PatchStreamT[M, Unit]

Execute an action repeatedly until the Boolean condition returns true. The condition is evaluated after the loop body. Discards results.

Execute an action repeatedly until the Boolean condition returns true. The condition is evaluated after the loop body. Discards results.

Inherited from
Monad
def void[A](fa: PatchStreamT[M, A]): PatchStreamT[M, Unit]

Empty fa of meaningful pure values, preserving its structure.

Empty fa of meaningful pure values, preserving its structure.

Inherited from
Functor
def whenM[A](cond: Boolean)(f: => PatchStreamT[M, A]): PatchStreamT[M, Unit]

Returns the given argument if cond is true, otherwise, unit lifted into F.

Returns the given argument if cond is true, otherwise, unit lifted into F.

Inherited from
Applicative
def whileM[G[_], A](p: PatchStreamT[M, Boolean], body: => PatchStreamT[M, A])(implicit G: MonadPlus[G]): PatchStreamT[M, G[A]]

Execute an action repeatedly as long as the given Boolean expression returns true. The condition is evaluated before the loop body. Collects the results into an arbitrary MonadPlus value, such as a List.

Execute an action repeatedly as long as the given Boolean expression returns true. The condition is evaluated before the loop body. Collects the results into an arbitrary MonadPlus value, such as a List.

Inherited from
Monad
def whileM_[A](p: PatchStreamT[M, Boolean], body: => PatchStreamT[M, A]): PatchStreamT[M, Unit]

Execute an action repeatedly as long as the given Boolean expression returns true. The condition is evaluated before the loop body. Discards results.

Execute an action repeatedly as long as the given Boolean expression returns true. The condition is evaluated before the loop body. Discards results.

Inherited from
Monad
def widen[A, B](fa: PatchStreamT[M, A])(implicit ev: Liskov[A, B]): PatchStreamT[M, B]

Functors are covariant by nature, so we can treat an F[A] as an F[B] if A is a subtype of B.

Functors are covariant by nature, so we can treat an F[A] as an F[B] if A is a subtype of B.

Inherited from
Functor
final
def xderiving0[Z](z: => Z): PatchStreamT[M, Z]
Inherited from
InvariantApplicative
final
def xderiving1[Z, A1](f: A1 => Z, g: Z => A1)(implicit a1: PatchStreamT[M, A1]): PatchStreamT[M, Z]
Inherited from
InvariantApplicative
final
def xderiving2[Z, A1, A2](f: (A1, A2) => Z, g: Z => (A1, A2))(implicit a1: PatchStreamT[M, A1], a2: PatchStreamT[M, A2]): PatchStreamT[M, Z]
Inherited from
InvariantApplicative
final
def xderiving3[Z, A1, A2, A3](f: (A1, A2, A3) => Z, g: Z => (A1, A2, A3))(implicit a1: PatchStreamT[M, A1], a2: PatchStreamT[M, A2], a3: PatchStreamT[M, A3]): PatchStreamT[M, Z]
Inherited from
InvariantApplicative
final
def xderiving4[Z, A1, A2, A3, A4](f: (A1, A2, A3, A4) => Z, g: Z => (A1, A2, A3, A4))(implicit a1: PatchStreamT[M, A1], a2: PatchStreamT[M, A2], a3: PatchStreamT[M, A3], a4: PatchStreamT[M, A4]): PatchStreamT[M, Z]
Inherited from
InvariantApplicative
def xmap[A, B](fa: PatchStreamT[M, A], f: A => B, g: B => A): PatchStreamT[M, B]
Inherited from
Functor
def xmapb[A, B](ma: PatchStreamT[M, A])(b: Bijection[A, B]): PatchStreamT[M, B]

Converts ma to a value of type F[B] using the provided bijection.

Converts ma to a value of type F[B] using the provided bijection.

Inherited from
InvariantFunctor
def xmapi[A, B](ma: PatchStreamT[M, A])(iso: IsoSet[A, B]): PatchStreamT[M, B]

Converts ma to a value of type F[B] using the provided isomorphism.

Converts ma to a value of type F[B] using the provided isomorphism.

Inherited from
InvariantFunctor
override
def xproduct0[Z](z: => Z): PatchStreamT[M, Z]
Definition Classes
Applicative -> InvariantApplicative
Inherited from
Applicative
override
def xproduct1[Z, A1](a1: => PatchStreamT[M, A1])(f: A1 => Z, g: Z => A1): PatchStreamT[M, Z]
Definition Classes
Applicative -> InvariantApplicative
Inherited from
Applicative
override
def xproduct2[Z, A1, A2](a1: => PatchStreamT[M, A1], a2: => PatchStreamT[M, A2])(f: (A1, A2) => Z, g: Z => (A1, A2)): PatchStreamT[M, Z]
Definition Classes
Applicative -> InvariantApplicative
Inherited from
Applicative
override
def xproduct3[Z, A1, A2, A3](a1: => PatchStreamT[M, A1], a2: => PatchStreamT[M, A2], a3: => PatchStreamT[M, A3])(f: (A1, A2, A3) => Z, g: Z => (A1, A2, A3)): PatchStreamT[M, Z]
Definition Classes
Applicative -> InvariantApplicative
Inherited from
Applicative
override
def xproduct4[Z, A1, A2, A3, A4](a1: => PatchStreamT[M, A1], a2: => PatchStreamT[M, A2], a3: => PatchStreamT[M, A3], a4: => PatchStreamT[M, A4])(f: (A1, A2, A3, A4) => Z, g: Z => (A1, A2, A3, A4)): PatchStreamT[M, Z]
Definition Classes
Applicative -> InvariantApplicative
Inherited from
Applicative

Concrete fields

protected
val M: Nondeterminism[M]

Inherited fields

val applicativeSyntax: ApplicativeSyntax[[X] =>> PatchStreamT[M, X]]
Inherited from
Applicative
val applySyntax: ApplySyntax[[X] =>> PatchStreamT[M, X]]
Inherited from
Apply
val bindSyntax: BindSyntax[[X] =>> PatchStreamT[M, X]]
Inherited from
Bind
val functorSyntax: FunctorSyntax[[X] =>> PatchStreamT[M, X]]
Inherited from
Functor
val invariantApplicativeSyntax: InvariantApplicativeSyntax[[X] =>> PatchStreamT[M, X]]
Inherited from
InvariantApplicative
val invariantFunctorSyntax: InvariantFunctorSyntax[[X] =>> PatchStreamT[M, X]]
Inherited from
InvariantFunctor
val monadSyntax: MonadSyntax[[X] =>> PatchStreamT[M, X]]
Inherited from
Monad