FoldExtensions

turbolift.internals.extensions.orphaned.FoldExtensions

No need to use this trait directly, because it's inherited by Extensions object.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Extensions.type

Members list

Extensions

Extensions

extension [A, S <: (IterableOnce)](thiz: S[A])(thiz: S[A])
def foldLeft_!![U, B](z: B)(op: (B, A) => Computation[B, U]): Computation[B, U]

Like foldLeft from the standard library, but using effectful function.

Like foldLeft from the standard library, but using effectful function.

Attributes

def foldRight_!![U, B](z: B)(op: (A, B) => Computation[B, U]): Computation[B, U]

Like foldRight from the standard library, but using effectful function.

Like foldRight from the standard library, but using effectful function.

Attributes

def reduceLeftOption_!![U](op: (A, A) => Computation[A, U]): Computation[Option[A], U]

Like reduceLeftOption from the standard library, but using effectful function.

Like reduceLeftOption from the standard library, but using effectful function.

Attributes

def reduceLeft_!![U](op: (A, A) => Computation[A, U]): Computation[A, U]

Like reduceLeft from the standard library, but using effectful function.

Like reduceLeft from the standard library, but using effectful function.

Attributes

extension [A, S <: (Iterable)](thiz: S[A])(thiz: S[A])
def mapFold_!![B, U](f: A => Computation[B, U])(z: B)(op: (B, B) => B): Computation[B, U]
def mapReduceOption_!![B, U](f: A => Computation[B, U])(op: (B, B) => B): Computation[Option[B], U]

map_!! fused with reduceOption_!!.

map_!! fused with reduceOption_!!.

Attributes

def mapReduce_!![B, U](f: A => Computation[B, U])(op: (B, B) => B): Computation[B, U]

map_!! fused with reduce_!!.

map_!! fused with reduce_!!.

Attributes

def reduceOption_!![U](op: (A, A) => Computation[A, U]): Computation[Option[A], U]

Like reduceOption from the standard library, but using effectful function.

Like reduceOption from the standard library, but using effectful function.

Attributes

def reduceRightOption_!![U](op: (A, A) => Computation[A, U]): Computation[Option[A], U]

Like reduceRightOption from the standard library, but using effectful function.

Like reduceRightOption from the standard library, but using effectful function.

Attributes

def reduceRight_!![U](op: (A, A) => Computation[A, U]): Computation[A, U]

Like reduceRight from the standard library, but using effectful function.

Like reduceRight from the standard library, but using effectful function.

Attributes

def reduce_!![U](op: (A, A) => Computation[A, U]): Computation[A, U]

Like reduce from the standard library, but using effectful function.

Like reduce from the standard library, but using effectful function.

Attributes