ArrOff

ostrat.ArrOff
final class ArrOff[A](val offset0: Int) extends AnyVal, ArrBaseOff[A, RArr[A]]

Immutable heapless iterator for Arr.

Attributes

Graph
Supertypes
trait ArrBaseOff[A, RArr[A]]
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

override def apply(index: Int)(implicit arr: RArr[A]): A

Attributes

Definition Classes
def drop(n: Int): ArrOff[A]
def drop1: ArrOff[A]
def drop2: ArrOff[A]
def headFold[B](emptyValue: => B)(f: (A, ArrOff[A]) => B)(implicit arr: RArr[A]): B

Folds over the existence of a head on this ArrOff iterator

Folds over the existence of a head on this ArrOff iterator

Attributes

def ifHead(f: A => Boolean)(implicit arr: RArr[A]): Boolean

Checks condition against head. Returns false if the collection is empty.

Checks condition against head. Returns false if the collection is empty.

Attributes

def length(implicit arr: RArr[A]): Int
def partitionT[AA <: A](implicit ct1: ClassTag[AA], arr: RArr[A]): (RArr[AA], ArrOff[A])

Partitions this ArrOff into an RArr and an ArrOff with the first part taking all the elements while they are of type AA.

Partitions this ArrOff into an RArr and an ArrOff with the first part taking all the elements while they are of type AA.

Attributes

def span(p: A => Boolean)(implicit arr: RArr[A], ct: ClassTag[A]): (RArr[A], ArrOff[A])
def str: String

Inherited methods

def forN(endIndex: Int, p: A => Boolean)(implicit arr: RArr[A]): Boolean

Attributes

Inherited from:
ArrBaseOff
def forRange(startIndex: Int, endIndex: Int, p: A => Boolean)(implicit arr: RArr[A]): Boolean

Attributes

Inherited from:
ArrBaseOff
def forall(p: A => Boolean)(implicit arr: RArr[A]): Boolean

Attributes

Inherited from:
ArrBaseOff
def lenStr(implicit arr: RArr[A]): String

Attributes

Inherited from:
ArrBaseOff
def notPredicateLength(p: A => Boolean)(implicit arr: RArr[A]): Int

Attributes

Inherited from:
ArrBaseOff
inline def offset1: Int

Attributes

Inherited from:
ArrBaseOff
inline def offset2: Int

Attributes

Inherited from:
ArrBaseOff
inline def offset3: Int

Attributes

Inherited from:
ArrBaseOff
inline def offset4: Int

Attributes

Inherited from:
ArrBaseOff
def predicateLength(p: A => Boolean)(implicit arr: RArr[A]): Int

Attributes

Inherited from:
ArrBaseOff

Concrete fields

val offset0: Int