basis.sequential

NonStrictCollectionOps

final class NonStrictCollectionOps[+A] extends AnyVal

Non-strictly evaluated collection operations.

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

    Returns a view concatenating this and another collection.

    Returns a view concatenating this and another collection.

    those

    the elements to append to these elements.

    returns

    a non-strict view of the concatenated elements.

  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]): Collection[B]

    Returns a view that applies a partial function to each element in this collection for which the function is defined.

    Returns a view that applies a partial function to each element in this collection for which the function is defined.

    q

    the partial function to lazily filter and map elements.

    returns

    a non-strict view of the filtered and mapped elements.

  7. def drop(lower: Int): Collection[A]

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

    Returns a view of 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 included elements.

    returns

    a non-strict view of all but the first lower elements.

  8. def dropWhile(p: (A) ⇒ Boolean): Collection[A]

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

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

    p

    the predicate to test elements against.

    returns

    a non-strict view of the suffix of accumulated elements beginning with the first element to not satisfy p.

  9. def filter(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.

  10. def flatMap[B](f: (A) ⇒ Collection[B]): Collection[B]

    Returns a view concatenating all elements returned by a function applied to each element in this collection.

    Returns a view concatenating all elements returned by a function applied to each element in this collection.

    f

    the collection-yielding function to apply to each element.

    returns

    a non-strict view concatenating all 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): Collection[B]

    Returns a view that applies a function to each element in this collection.

    Returns a view that applies a function to each element in this collection.

    f

    the function to lazily apply to each element.

    returns

    a non-strict view of the mapped elements.

  14. def slice(lower: Int, upper: Int): Collection[A]

    Returns a view of an interval of elements in this collection.

    Returns a view of an interval of elements in this collection.

    lower

    the inclusive lower bound for indexes of included elements.

    upper

    the exclusive upper bound for indexes of included elements.

    returns

    a non-strict view of the elements with indexes greater than or equal to lower and less than upper.

  15. def span(p: (A) ⇒ Boolean): (Collection[A], Collection[A])

    Returns a (prefix, suffix) pair of views 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 of views 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.

    returns

    the (predix, suffix) pair of non-strict views.

  16. def take(upper: Int): Collection[A]

    Returns a view of a prefix of this collection up to some length.

    Returns a view of 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 included elements.

    returns

    a non-strict view of up to the first upper elements.

  17. def takeWhile(p: (A) ⇒ Boolean): Collection[A]

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

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

    p

    the predicate to test elements against.

    returns

    a non-strict view of the longest prefix of 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