basis.sequential

GeneralEnumeratorOps

final class GeneralEnumeratorOps[+A] extends AnyVal

General enumerator operations.

Linear Supertypes
AnyVal, NotNull, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GeneralEnumeratorOps
  2. AnyVal
  3. NotNull
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GeneralEnumeratorOps(these: Enumerator[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 choose[B](q: PartialFunction[A, B]): Option[B]

    Returns the application of a partial function to the first element of this enumerator for which the function is defined.

    Returns the application of a partial function to the first element of this enumerator for which the function is defined.

    q

    the partial function to test elements against and to apply to the first found element.

    returns

    some found and mapped element, or none if no element applies to q.

  6. def count(p: (A) ⇒ Boolean): Int

    Returns the number of elements in this enumerator that satisfy a predicate.

    Returns the number of elements in this enumerator that satisfy a predicate.

    p

    the predicate to test elements against.

    returns

    the number of elements satisfying p.

  7. def eagerly: StrictEnumeratorOps[A, Enumerator[A]]

    Returns a strict operations interface to this enumerator.

  8. def exists(p: (A) ⇒ Boolean): Boolean

    Returns true if a predicate holds for some element of this enumerator.

    Returns true if a predicate holds for some element of this enumerator.

    p

    the predicate to test elements against.

    returns

    true if any element satisfies p, otherwise false.

  9. def find(p: (A) ⇒ Boolean): Option[A]

    Returns the first element of this enumerator that satisfies a predicate.

    Returns the first element of this enumerator that satisfies a predicate.

    p

    the predicate to test elements against.

    returns

    some found element, or none if no element satisfies p.

  10. def fold[B >: A](z: B)(op: (B, B) ⇒ B): B

    Returns the repeated application of an associative binary operator between an identity value and all elements of this enumerator.

    Returns the repeated application of an associative binary operator between an identity value and all elements of this enumerator.

    z

    the operator's identity element.

    op

    the associative binary operator to apply.

    returns

    the folded value.

  11. def foldLeft[B](z: B)(op: (B, A) ⇒ B): B

    Returns the left-to-right application of a binary operator between a start value and all elements of this enumerator.

    Returns the left-to-right application of a binary operator between a start value and all elements of this enumerator.

    z

    the starting value.

    op

    the binary operator to apply right-recursively.

    returns

    the folded value.

  12. def forall(p: (A) ⇒ Boolean): Boolean

    Returns true if a predicate holds for all elements of this enumerator.

    Returns true if a predicate holds for all elements of this enumerator.

    p

    the predicate to test elements against.

    returns

    true if all elements satisfy p, otherwise false.

  13. def foreach[U](f: (A) ⇒ U): Unit

    Sequentially applies a function to each element of this enumerator.

    Sequentially applies a function to each element of this enumerator.

    f

    the function to apply to each element.

  14. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def lazily: NonStrictEnumeratorOps[A]

    Returns a non-strict operations interface to this enumerator.

  17. def reduce[B >: A](op: (B, B) ⇒ B): B

    Returns the repeated application of an associative binary operator between all elements of this non-empty enumerator.

    Returns the repeated application of an associative binary operator between all elements of this non-empty enumerator.

    op

    the associative binary operator to apply.

    returns

    the reduced value.

  18. def reduceLeft[B >: A](op: (B, A) ⇒ B): B

    Returns the left-to-right application of a binary operator between all elements of this non-empty enumerator.

    Returns the left-to-right application of a binary operator between all elements of this non-empty enumerator.

    op

    the binary operator to apply right-recursively.

    returns

    the reduced value.

  19. def reduceLeftOption[B >: A](op: (B, A) ⇒ B): Option[B]

    Returns the left-to-right application of a binary operator between all elements of this enumerator.

    Returns the left-to-right application of a binary operator between all elements of this enumerator.

    op

    the binary operator to apply right-recursively.

    returns

    some reduced value, or none if this enumerator is empty.

  20. def reduceOption[B >: A](op: (B, B) ⇒ B): Option[B]

    Returns the repeated application of an associative binary operator between all elements of this enumerator.

    Returns the repeated application of an associative binary operator between all elements of this enumerator.

    op

    the associative binary operator to apply.

    returns

    some reduced value, or none if this enumerator is empty.

  21. val these: Enumerator[A]

  22. def toString(): String

    Definition Classes
    Any

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Traversing

Reducing

Querying

Transforming

Ungrouped