basis.sequential

NonStrictContainerOps

final class NonStrictContainerOps[+A] extends AnyVal

Non-strictly evaluated container operations.

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

Value Members

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

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

    Definition Classes
    Any
  3. def ++[B >: A](those: Container[B]): Container[B]

    Returns a view concatenating this and another container.

    Returns a view concatenating this and another container.

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

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

    Returns a view that applies a partial function to each element in this container 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): Container[A]

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

    Returns a view of all elements in this container 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): Container[A]

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

    Returns a view of all elements following the longest prefix of this container 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): Container[A]

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

    Returns a view of all elements in this container 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) ⇒ Container[B]): Container[B]

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

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

    f

    the container-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): Container[B]

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

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

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

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

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

    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): (Container[A], Container[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): Container[A]

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

    Returns a view of a prefix of this container 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): Container[A]

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

    Returns a view of the longest prefix of this container 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: Container[A]

  19. def toString(): String

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

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

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

    p

    the predicate to lazily test elements against.

    returns

    a non-strict view of the filtered elements.

  21. def zip[B](those: Container[B]): Container[(A, B)]

    Returns a view of pairs of elemnts from this and another container.

    Returns a view of pairs of elemnts from this and another container.

    those

    the container whose elements to lazily pair with these elements.

    returns

    a non-strict view of the pairs of corresponding elements.

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Mapping

Filtering

Combining

Ungrouped