basis.sequential

StrictCollectionOps

final class StrictCollectionOps[+A, +From] extends AnyVal

Strictly evaluated collection operations.

Linear Supertypes
AnyVal, NotNull, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StrictCollectionOps
  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 StrictCollectionOps(these: Collection[A])

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. def ++[B >: A](those: Enumerator[B])(implicit builder: Builder[From, B]): State

    Returns the concatenation of this and another collection.

    Returns the concatenation of this and another collection.

    those

    the elements to append to these elements.

    builder

    the implicit accumulator for concatenated elements.

    returns

    the accumulated elements of both collections.

  4. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def collect[B](q: PartialFunction[A, B])(implicit builder: Builder[From, B]): State

    Returns the applications of a partial function to each element in this collection for which the function is defined.

    Returns the applications of a partial function to each element in this collection for which the function is defined.

    q

    the partial function to filter and transform elements.

    builder

    the implicit accumulator for collected elements.

    returns

    the accumulated elements filtered and transformed by q.

  7. def drop(lower: Int)(implicit builder: Builder[From, A]): State

    Returns all elements in this collection following a prefix up to some length.

    Returns all elements in this collection following a prefix up to some length.

    lower

    the length of the prefix to drop; also the inclusive lower bound for indexes of elements to keep.

    builder

    the implicit accumulator for non-dropped elements.

    returns

    all but the first lower accumulated elements.

  8. def dropWhile(p: (A) ⇒ Boolean)(implicit builder: Builder[From, A]): State

    Returns all elements following the longest prefix of this collection for which each element satisfies a predicate.

    Returns all elements following the longest prefix of this collection for which each element satisfies a predicate.

    p

    the predicate to test elements against.

    builder

    the implicit accumulator for non-dropped elements.

    returns

    the suffix of accumulated elements beginning with the first element to not satisfy p.

  9. def filter(p: (A) ⇒ Boolean)(implicit builder: Builder[From, A]): State

    Returns all elements in this collection that satisfy a predicate.

    Returns all elements in this collection that satisfy a predicate.

    p

    the predicate to test elements against.

    builder

    the implicit accumulator for filtered elements.

    returns

    the accumulated elements filtered by p.

  10. def flatMap[B](f: (A) ⇒ Enumerator[B])(implicit builder: Builder[From, B]): State

    Returns the concatenation of all elements returned by a function applied to each element in this collection.

    Returns the concatenation of all elements returned by a function applied to each element in this collection.

    f

    the enumerator-yielding function to apply to each element.

    builder

    the implicit accumulator for flattened elements.

    returns

    the concatenation of all accumulated elements produced by f.

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

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

    Definition Classes
    Any
  13. def map[B](f: (A) ⇒ B)(implicit builder: Builder[From, B]): State

    Returns the applications of a function to each element in this collection.

    Returns the applications of a function to each element in this collection.

    f

    the function to apply to each element.

    builder

    the implicit accumulator for transformed elements.

    returns

    the accumulated elements transformed by f.

  14. def slice(lower: Int, upper: Int)(implicit builder: Builder[From, A]): State

    Returns an interval of elements in this collection.

    Returns an interval of elements in this collection.

    lower

    the inclusive lower bound for indexes of elements to keep.

    upper

    the exclusive upper bound for indexes of elements to keep.

    builder

    the implicit accumulator for kept elements.

    returns

    the accumulated elements with indexes greater than or equal to lower and less than upper.

  15. def span(p: (A) ⇒ Boolean)(implicit builder1: Builder[From, A], builder2: Builder[From, A]): (State, State)

    Returns a (prefix, suffix) pair with the prefix being the longest one for which each element satisfies a predicate, and the suffix beginning with the first element to not satisfy the predicate.

    Returns a (prefix, suffix) pair with the prefix being the longest one for which each element satisfies a predicate, and the suffix beginning with the first element to not satisfy the predicate.

    p

    the predicate to test elements against.

    builder1

    the implicit accumulator for prefix elements.

    builder2

    the implicit accumilator for suffix elements.

    returns

    the pair of accumulated prefix and suffix elements.

  16. def take(upper: Int)(implicit builder: Builder[From, A]): State

    Returns a prefix of this collection up to some length.

    Returns a prefix of this collection up to some length.

    upper

    the length of the prefix to take; also the exclusive upper bound for indexes of elements to keep.

    builder

    the implicit accumulator for taken elements.

    returns

    up to the first upper accumulated elements.

  17. def takeWhile(p: (A) ⇒ Boolean)(implicit builder: Builder[From, A]): State

    Returns the longest prefix of this collection for which each element satisfies a predicate.

    Returns the longest prefix of this collection for which each element satisfies a predicate.

    p

    the predicate to test elements against.

    builder

    the implicit accumulator for taken elements.

    returns

    the longest prefix of accumulated elements preceding the first element to not satisfy p.

  18. val these: Collection[A]

  19. def toString(): String

    Definition Classes
    Any
  20. def withFilter(p: (A) ⇒ Boolean): Collection[A]

    Returns a view of all elements in this collection that satisfy a predicate.

    Returns a view of all elements in this collection that satisfy a predicate.

    p

    the predicate to lazily test elements against.

    returns

    a non-strict view of the filtered elements.

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Mapping

Filtering

Combining

Ungrouped