basis.sequential

NonStrictIndexOps

final class NonStrictIndexOps[+A] extends AnyVal

Non-strictly evaluated indexed sequence operations.

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

Value Members

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

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

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

    Returns a view concatenating this and another sequence.

    Returns a view concatenating this and another sequence.

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

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

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

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

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

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

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

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

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

    p

    the predicate to lazily test elements against.

    returns

    a non-strict view of the filtered elements.

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

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

    Definition Classes
    Any
  12. def map[B](f: (A) ⇒ B): Index[B]

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

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

    f

    the function to lazily apply to each element.

    returns

    a non-strict view of the mapped elements.

  13. def reverse: Index[A]

    Returns a view of the reverse of this sequence.

    Returns a view of the reverse of this sequence.

    returns

    a non-strict view of the elements in this sequence in reverse order.

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

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

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

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

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

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

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

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

  19. def toString(): String

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

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

    Returns a view of all elements in this sequence 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: Index[B]): Index[(A, B)]

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

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

    those

    the sequence 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