Extensions

turbolift.Extensions

Orphaned extensions.

Extensions of standard library types, like Iterable, Iterator, etc.

Usage: just import them all.

import turbolift.Extensions._

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Show all
Self type
Extensions.type

Members list

Extensions

Inherited extensions

extension [A, S <: (IterableOnce)](thiz: S[A])
def foldLeftEff[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

Inherited from:
FoldExtensions
def foldRightEff[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

Inherited from:
FoldExtensions
def reduceLeftEff[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

Inherited from:
FoldExtensions
def reduceLeftOptionEff[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

Inherited from:
FoldExtensions
extension [A](thiz: A)
def pure_!!: Computation[A, Any]

Postfix alias of pure(_)

Postfix alias of pure(_)

Attributes

Inherited from:
MiscExtensions
extension [A, U, S <: (IterableOnce)](thiz: S[Computation[A, U]])
def traverseVoid: Computation[Unit, U]

Like traverse, but discards the result.

Like traverse, but discards the result.

Attributes

Inherited from:
TraverseExtensions

Like traversePar, but discards the result.

Like traversePar, but discards the result.

Attributes

Inherited from:
TraverseExtensions
extension [A](thiz: Iterable[A])

Attributes

Inherited from:
MiscExtensions
extension [A](thiz: Iterator[A])

Attributes

Inherited from:
MiscExtensions
extension [A, U](thiz: Iterator[Computation[A, U]])
def traverse: Computation[Vector[A], U]

Transforms sequence of computations, into computation of sequence.

Transforms sequence of computations, into computation of sequence.

Attributes

Inherited from:
TraverseExtensions
def traversePar: Computation[Vector[A], U]

Like traverse, but executed parallelly for each element.

Like traverse, but executed parallelly for each element.

Attributes

Inherited from:
TraverseExtensions
extension [A, S <: (Iterable)](thiz: S[A])
def mapFoldEff[B, U](f: A => Computation[B, U])(z: B)(op: (B, B) => B): Computation[B, U]

Attributes

Inherited from:
FoldExtensions
def mapReduceEff[B, U](f: A => Computation[B, U])(op: (B, B) => B): Computation[B, U]

mapEff fused with reduceEff.

mapEff fused with reduceEff.

Attributes

Inherited from:
FoldExtensions
def mapReduceOptionEff[B, U](f: A => Computation[B, U])(op: (B, B) => B): Computation[Option[B], U]

mapEff fused with reduceOptionEff.

mapEff fused with reduceOptionEff.

Attributes

Inherited from:
FoldExtensions
def reduceEff[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

Inherited from:
FoldExtensions
def reduceOptionEff[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

Inherited from:
FoldExtensions
def reduceRightEff[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

Inherited from:
FoldExtensions
def reduceRightOptionEff[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

Inherited from:
FoldExtensions
extension [A, U, S <: (Iterable)](thiz: S[Computation[A, U]])(using BuildFrom[S[Computation[A, U]], A, S[A]])
def traverse: Computation[S[A], U]

Attributes

Inherited from:
TraverseExtensions
def traversePar: Computation[S[A], U]

Attributes

Inherited from:
TraverseExtensions
extension [A](thiz: Iterator[A])
def collectEff[B, U](f: PartialFunction[A, Computation[B, U]]): Computation[Vector[B], U]

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

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

Attributes

Inherited from:
MapFilterExtensions (hidden)
def collectParEff[B, U](f: PartialFunction[A, Computation[B, U]]): Computation[Vector[B], U]

Like collectEff, but executed parallelly for each element.

Like collectEff, but executed parallelly for each element.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def filterEff[U](f: A => Computation[Boolean, U]): Computation[Vector[A], U]

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

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

Attributes

Inherited from:
MapFilterExtensions (hidden)
def filterParEff[U](f: A => Computation[Boolean, U]): Computation[Vector[A], U]

Like filterEff, but executed parallelly for each element.

Like filterEff, but executed parallelly for each element.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def flatMapEff[B, U](f: A => Computation[IterableOnce[B], U]): Computation[Vector[B], U]

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

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

Attributes

Inherited from:
MapFilterExtensions (hidden)
def flatMapParEff[B, U](f: A => Computation[IterableOnce[B], U]): Computation[Vector[B], U]

Like flatMapEff, but executed parallelly for each element.

Like flatMapEff, but executed parallelly for each element.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def mapEff[B, U](f: A => Computation[B, U]): Computation[Vector[B], U]

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

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

Attributes

Inherited from:
MapFilterExtensions (hidden)
def mapFilter[B](f: A => Option[B]): Iterator[B]

Like flatMap from the standard library, but specialized for Option.

Like flatMap from the standard library, but specialized for Option.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def mapFilterEff[B, U](f: A => Computation[Option[B], U]): Computation[Vector[B], U]

Like mapFilter, but using effectful function.

Like mapFilter, but using effectful function.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def mapFilterParEff[B, U](f: A => Computation[Option[B], U]): Computation[Vector[B], U]

Like mapFilterEff, but executed parallelly for each element.

Like mapFilterEff, but executed parallelly for each element.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def mapParEff[B, U](f: A => Computation[B, U]): Computation[Vector[B], U]

Like mapEff, but executed parallelly for each element.

Like mapEff, but executed parallelly for each element.

Attributes

Inherited from:
MapFilterExtensions (hidden)
extension [A, U](thiz: Option[Computation[A, U]])
def traverse: Computation[Option[A], U]

Transforms option of computation, into computation of option.

Transforms option of computation, into computation of option.

Attributes

Inherited from:
TraverseExtensions
def traversePar: Computation[Option[A], U]

Like traverse.

Like traverse.

Attributes

Inherited from:
TraverseExtensions
def traverseVoid: Computation[Unit, U]

Like traverse, but discards the result.

Like traverse, but discards the result.

Attributes

Inherited from:
TraverseExtensions

Like traverseVoid.

Like traverseVoid.

Attributes

Inherited from:
TraverseExtensions
extension [A, T, U](thiz: Either[T, Computation[A, U]])
def traverse: Computation[Either[T, A], U]

Attributes

Inherited from:
TraverseExtensions
def traversePar: Computation[Either[T, A], U]

Attributes

Inherited from:
TraverseExtensions
def traverseVoid: Computation[Unit, U]

Like traverse, but discards the result.

Like traverse, but discards the result.

Attributes

Inherited from:
TraverseExtensions

Like traversePar, but discards the result.

Like traversePar, but discards the result.

Attributes

Inherited from:
TraverseExtensions
extension [A](thiz: IterableOnce[A])
def foreachEff[U](f: A => Computation[Unit, U]): Computation[Unit, U]

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

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

Attributes

Inherited from:
MapFilterExtensions (hidden)
def foreachParEff[U](f: A => Computation[Unit, U]): Computation[Unit, U]

Like foreachEff, but executed parallelly for each element.

Like foreachEff, but executed parallelly for each element.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def forsome[U](f: PartialFunction[A, Unit]): Unit

Like foreach from the standard library, but executed only for elements, where the partial function is defined.

Like foreach from the standard library, but executed only for elements, where the partial function is defined.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def forsomeEff[U](f: PartialFunction[A, Computation[Unit, U]]): Computation[Unit, U]

Like forsome , but using effectful function.

Like forsome , but using effectful function.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def forsomeParEff[U](f: PartialFunction[A, Computation[Unit, U]]): Computation[Unit, U]

Like forsomeEff, but executed parallelly for each element.

Like forsomeEff, but executed parallelly for each element.

Attributes

Inherited from:
MapFilterExtensions (hidden)
extension [A, S <: (Iterable)](thiz: S[A])
def collectEff[B, U](f: PartialFunction[A, Computation[B, U]])(using BF[A, B, S]): Computation[S[B], U]

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

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

Attributes

Inherited from:
MapFilterExtensions (hidden)
def collectParEff[B, U](f: PartialFunction[A, Computation[B, U]])(using BF[A, B, S]): Computation[S[B], U]

Like collectEff, but executed parallelly for each element.

Like collectEff, but executed parallelly for each element.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def filterEff[U](f: A => Computation[Boolean, U])(using BF[A, A, S]): Computation[S[A], U]

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

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

Attributes

Inherited from:
MapFilterExtensions (hidden)
def filterParEff[U](f: A => Computation[Boolean, U])(using BF[A, A, S]): Computation[S[A], U]

Like filterEff, but executed parallelly for each element.

Like filterEff, but executed parallelly for each element.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def flatMapEff[B, U](f: A => Computation[IterableOnce[B], U])(using BF[A, B, S]): Computation[S[B], U]

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

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

Attributes

Inherited from:
MapFilterExtensions (hidden)
def flatMapParEff[B, U](f: A => Computation[IterableOnce[B], U])(using BF[A, B, S]): Computation[S[B], U]

Like flatMapEff, but executed parallelly for each element.

Like flatMapEff, but executed parallelly for each element.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def mapEff[B, U](f: A => Computation[B, U])(using BF[A, B, S]): Computation[S[B], U]

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

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

Attributes

Inherited from:
MapFilterExtensions (hidden)
def mapFilterEff[B, U](f: A => Computation[Option[B], U])(using BF[A, B, S]): Computation[S[B], U]

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

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

Attributes

Inherited from:
MapFilterExtensions (hidden)
def mapFilterParEff[B, U](f: A => Computation[Option[B], U])(using BF[A, B, S]): Computation[S[B], U]

Like mapFilterEff, but executed parallelly for each element.

Like mapFilterEff, but executed parallelly for each element.

Attributes

Inherited from:
MapFilterExtensions (hidden)
def mapParEff[B, U](f: A => Computation[B, U])(using BF[A, B, S]): Computation[S[B], U]

Like mapEff, but executed parallelly for each element.

Like mapEff, but executed parallelly for each element.

Attributes

Inherited from:
MapFilterExtensions (hidden)

Exports

Defined exports

final type Const = Const
Exported from Extensions$package$
final type Identity = Identity
Exported from Extensions$package$