Packages

final class ReducerOps[A] extends AnyVal

Source
ReducerOps.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReducerOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReducerOps(self: A)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def cons[M](m: M)(implicit r: Reducer[A, M]): M

    Prepend the value to a monoid for use in right-to-left reduction

  6. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def snoc[C](c: C)(implicit r: Reducer[C, A]): A

    Append the value to a monoid for use in left-to-right reduction

  9. def toString(): String
    Definition Classes
    Any
  10. def unfoldl[C](f: (A) ⇒ Maybe[(A, C)]): UnfoldTo[C]

    Unfold to the left using this value as initial seed.

    Unfold to the left using this value as initial seed.

    Example:

    0.unfoldl(i => if (i < 5) just((i+1, i.toString)) else empty[(Int, String)]).to[List]
     = List(4, 3, 2, 1, 0)
  11. def unfoldr[C](f: (A) ⇒ Maybe[(C, A)]): UnfoldTo[C]

    Unfold to the right using this value as initial seed Example:

    Unfold to the right using this value as initial seed Example:

    0.unfoldr(i => if (i < 5) just((i.toString, i+1)) else empty[(String, Int)]).to[List]
     = List(0, 1, 2, 3, 4)
  12. def unit[M](implicit r: Reducer[A, M]): M

    Convert the value into a monoid

Inherited from AnyVal

Inherited from Any

Ungrouped