ReducerInstances

sealed abstract
class Object
trait Matchable
class Any
object Reducer

Value members

Concrete methods

def ReverseListReducer[C]: Reducer[C, List[C]]
def foldReduce[F[_], A, B : Monoid](a: F[A])(implicit evidence$2: Monoid[B], f: Foldable[F], r: Reducer[A, B]): B
def identityReducer[M](implicit mm: Semigroup[M]): Reducer[M, M]

The reducer derived from any semigroup. Not implicit because it is suboptimal for most reducer applications.

The reducer derived from any semigroup. Not implicit because it is suboptimal for most reducer applications.

def reducer[C, M](u: C => M, cs: (C, M) => M, sc: (M, C) => M)(implicit sm: Semigroup[M]): Reducer[C, M]

Alias for scalaz.Reducer.apply.

Alias for scalaz.Reducer.apply.

def unitConsReducer[C, M](u: C => M, cs: (C, M) => M)(implicit sm: Semigroup[M]): Reducer[C, M]
def unitLazyConsReducer[C, M](u: C => M, cs: (C, => M) => M)(implicit sm: Semigroup[M]): Reducer[C, M]
def unitReducer[C, M](u: C => M)(implicit mm: Semigroup[M]): Reducer[C, M]

Alias for scalaz.UnitReducer.apply.

Alias for scalaz.UnitReducer.apply.

Implicits

Implicits

implicit
val AllReducer: Reducer[Boolean, Boolean @@ Conjunction]

The "and" semigroup.

The "and" semigroup.

implicit
val AnyReducer: Reducer[Boolean, Boolean]

The "or" semigroup.

The "or" semigroup.

implicit
implicit
implicit
implicit
implicit
def EndoReducer[A]: Reducer[A => A, Endo[A]]

Accumulate endomorphisms.

Accumulate endomorphisms.

implicit
def FirstOptionReducer[A]: Reducer[Option[A], Option[A] @@ First]
implicit
def FirstReducer[A]: Reducer[A, Option[A] @@ First]
implicit
def IListReducer[C]: Reducer[C, IList[C]]

Collect Cs into an ilist, in order.

Collect Cs into an ilist, in order.

implicit
implicit
def LastOptionReducer[A]: Reducer[Option[A], Option[A] @@ Last]
implicit
def LastReducer[A]: Reducer[A, Option[A] @@ Last]
implicit
def ListReducer[C]: Reducer[C, List[C]]

Collect Cs into a list, in order.

Collect Cs into a list, in order.

implicit
implicit

Collect Cs into an NonEmptyList, in order.

Collect Cs into an NonEmptyList, in order.

implicit
implicit
def StreamReducer[C]: Reducer[C, Stream[C]]

Collect Cs into a stream, in order.

Collect Cs into a stream, in order.

implicit
def UnitReducer[C]: Reducer[C, Unit]

Ignore Cs.

Ignore Cs.

implicit
def VectorReducer[C]: Reducer[C, Vector[C]]

Collect Cs into a vector, in order.

Collect Cs into a vector, in order.