basis.sequential

GeneralCollectionOps

final class GeneralCollectionOps[+A] extends AnyVal

General collection operations.

Linear Supertypes
AnyVal, NotNull, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GeneralCollectionOps
  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 GeneralCollectionOps(these: Collection[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 collection for which the function is defined.

    Returns the application of a partial function to the first element of this collection 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 collection that satisfy a predicate.

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

    p

    the predicate to test elements against.

    returns

    the number of elements satisfying p.

  7. def eagerly: StrictCollectionOps[A, Collection[A]]

    Returns a strict operations interface to this collection.

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

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

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

    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 collection that satisfies a predicate.

    Returns the first element of this collection 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 collection.

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

    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 collection.

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

    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 collection.

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

    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 collection.

    Sequentially applies a function to each element of this collection.

    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: NonStrictCollectionOps[A]

    Returns a non-strict operations interface to this collection.

  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 collection.

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

    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 collection.

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

    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 collection.

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

    op

    the binary operator to apply right-recursively.

    returns

    some reduced value, or none if this collection 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 collection.

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

    op

    the associative binary operator to apply.

    returns

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

  21. val these: Collection[A]

  22. def toString(): String

    Definition Classes
    Any

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Traversing

Reducing

Querying

Transforming

Ungrouped