Indexed

kyo.Chunk.Indexed
sealed abstract class Indexed[A] extends Chunk[A]

An indexed version of Chunk that provides O(1) access to elements.

Type parameters

A

the type of elements in the Indexed Chunk

Attributes

Graph
Supertypes
class Chunk[A]
trait Seq[A]
trait SeqOps[A, Seq, Seq[A]]
trait Seq[A]
trait Equals
trait SeqOps[A, Seq, Seq[A]]
trait PartialFunction[Int, A]
trait Int => A
trait Iterable[A]
trait Iterable[A]
trait IterableFactoryDefaults[A, Seq]
trait IterableOps[A, Seq, Seq[A]]
trait IterableOnceOps[A, Seq, Seq[A]]
trait IterableOnce[A]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Abstract methods

def apply(i: Int): A

Returns the element at the specified index.

Returns the element at the specified index.

Value parameters

i

the index of the element to return

Attributes

Returns

the element at the specified index

Throws
IndexOutOfBoundsException

if the index is out of bounds

Concrete methods

final override def head: A

Returns the first element of the Indexed Chunk.

Returns the first element of the Indexed Chunk.

Attributes

Returns

the first element

Throws
NoSuchElementException

if the Indexed Chunk is empty

Definition Classes
IterableOps
final override def tail: Indexed[A]

Returns a new Indexed Chunk containing all elements except the first.

Returns a new Indexed Chunk containing all elements except the first.

Attributes

Returns

a new Indexed Chunk without the first element

Definition Classes
IterableOps

Inherited methods

final def ++[B >: A](suffix: IterableOnce[B]): Seq[B]

Attributes

Inherited from:
IterableOps
final override def ++:[B >: A](prefix: IterableOnce[B]): Seq[B]

Attributes

Definition Classes
SeqOps -> IterableOps
Inherited from:
SeqOps
final def +:[B >: A](elem: B): Seq[B]

Attributes

Inherited from:
SeqOps
final def :+[B >: A](elem: B): Seq[B]

Attributes

Inherited from:
SeqOps
final def :++[B >: A](suffix: IterableOnce[B]): Seq[B]

Attributes

Inherited from:
SeqOps
final def addString(b: StringBuilder): b.type

Attributes

Inherited from:
IterableOnceOps
final def addString(b: StringBuilder, sep: String): b.type

Attributes

Inherited from:
IterableOnceOps
def addString(b: StringBuilder, start: String, sep: String, end: String): b.type

Attributes

Inherited from:
IterableOnceOps
def andThen[C](k: PartialFunction[A, C]): PartialFunction[Int, C]

Attributes

Inherited from:
PartialFunction
override def andThen[C](k: A => C): PartialFunction[Int, C]

Attributes

Definition Classes
PartialFunction -> Function1
Inherited from:
PartialFunction
final def append(v: A): Chunk[A]

Appends an element to the end of the Chunk.

Appends an element to the end of the Chunk.

Value parameters

v

the element to append

Attributes

Returns

a new Chunk with the element appended

Inherited from:
Chunk
def appended[B >: A](elem: B): Seq[B]

Attributes

Inherited from:
SeqOps
def appendedAll[B >: A](suffix: IterableOnce[B]): Seq[B]

Attributes

Inherited from:
SeqOps
def applyOrElse[A1 <: Int, B1 >: A](x: A1, default: A1 => B1): B1

Attributes

Inherited from:
PartialFunction
def canEqual(that: Any): Boolean

Attributes

Inherited from:
Seq
final def changes(first: Maybe[A])(using CanEqual[A, A]): Chunk[A]

Returns a new Chunk containing only the elements that change from the previous element, with a given initial value.

Returns a new Chunk containing only the elements that change from the previous element, with a given initial value.

Value parameters

first

the initial value to compare against

using

CanEqual[A, A] implicit evidence that A can be compared for equality

Attributes

Returns

a new Chunk containing only the changing elements

Inherited from:
Chunk
final def changes(using CanEqual[A, A]): Chunk[A]

Returns a new Chunk containing only the elements that change from the previous element.

Returns a new Chunk containing only the elements that change from the previous element.

Value parameters

using

CanEqual[A, A] implicit evidence that A can be compared for equality

Attributes

Returns

a new Chunk containing only the changing elements

Inherited from:
Chunk
def collect[B](pf: PartialFunction[A, B]): Seq[B]

Attributes

Inherited from:
IterableOps
def collectFirst[B](pf: PartialFunction[A, B]): Option[B]

Attributes

Inherited from:
IterableOnceOps
def combinations(n: Int): Iterator[Seq[A]]

Attributes

Inherited from:
SeqOps
def compose[R](k: PartialFunction[R, Int]): PartialFunction[R, A]

Attributes

Inherited from:
PartialFunction
def compose[A](g: A => Int): A => A

Attributes

Inherited from:
Function1
final def concat(other: Chunk[A]): Chunk[A]

Concatenates this Chunk with another Chunk.

Concatenates this Chunk with another Chunk.

Value parameters

other

the Chunk to concatenate with this one

Attributes

Returns

a new Chunk containing all elements from this Chunk followed by all elements from the other Chunk

Inherited from:
Chunk
final override def concat[B >: A](suffix: IterableOnce[B]): Seq[B]

Attributes

Definition Classes
SeqOps -> IterableOps
Inherited from:
SeqOps
def contains[A1 >: A](elem: A1): Boolean

Attributes

Inherited from:
SeqOps
def containsSlice[B >: A](that: Seq[B]): Boolean

Attributes

Inherited from:
SeqOps
final def copyTo[B >: A](array: Array[B], start: Int, elements: Int): Unit

Copies a specified number of elements from this Chunk to an array.

Copies a specified number of elements from this Chunk to an array.

Value parameters

array

the array to copy to

elements

the number of elements to copy

start

the starting position in the array

Attributes

Inherited from:
Chunk
final def copyTo[B >: A](array: Array[B], start: Int): Unit

Copies the elements of this Chunk to an array.

Copies the elements of this Chunk to an array.

Value parameters

array

the array to copy to

start

the starting position in the array

Attributes

Inherited from:
Chunk
def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: A](xs: Array[B], start: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: A](xs: Array[B]): Int

Attributes

Inherited from:
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def corresponds[B](that: Seq[B])(p: (A, B) => Boolean): Boolean

Attributes

Inherited from:
SeqOps
def count(p: A => Boolean): Int

Attributes

Inherited from:
IterableOnceOps
def diff[B >: A](that: Seq[B]): Seq[A]

Attributes

Inherited from:
SeqOps
def distinct: Seq[A]

Attributes

Inherited from:
SeqOps
def distinctBy[B](f: A => B): Seq[A]

Attributes

Inherited from:
SeqOps
override def drop(n: Int): Chunk[A]

Drops the first n elements of the Chunk.

Drops the first n elements of the Chunk.

Value parameters

n

the number of elements to drop

Attributes

Returns

a new Chunk with the first n elements removed

Definition Classes
Chunk -> IterableOps -> IterableOnceOps
Inherited from:
Chunk
final def dropLeft(n: Int): Chunk[A]

Drops the first n elements of the Chunk.

Drops the first n elements of the Chunk.

Value parameters

n

the number of elements to drop

Attributes

Returns

a new Chunk with the first n elements removed

Inherited from:
Chunk
final def dropLeftAndRight(left: Int, right: Int): Chunk[A]

Drops elements from both ends of the Chunk.

Drops elements from both ends of the Chunk.

Value parameters

left

the number of elements to drop from the left

right

the number of elements to drop from the right

Attributes

Returns

a new Chunk with elements dropped from both ends

Inherited from:
Chunk
override def dropRight(n: Int): Chunk[A]

Drops the last n elements of the Chunk.

Drops the last n elements of the Chunk.

Value parameters

n

the number of elements to drop

Attributes

Returns

a new Chunk with the last n elements removed

Definition Classes
Chunk -> IterableOps
Inherited from:
Chunk
def dropWhile(p: A => Boolean): Seq[A]

Attributes

Inherited from:
IterableOps
def elementWise: ElementWiseExtractor[Int, A]

Attributes

Inherited from:
PartialFunction
override def empty: Seq[A]

Attributes

Definition Classes
IterableFactoryDefaults -> IterableOps
Inherited from:
IterableFactoryDefaults
def endsWith[B >: A](that: Iterable[B]): Boolean

Attributes

Inherited from:
SeqOps
override def equals(o: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Value parameters

that

the object to compare against this object for equality.

Attributes

Returns

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Seq -> Equals -> Any
Inherited from:
Seq
def exists(p: A => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def filter(pred: A => Boolean): Seq[A]

Attributes

Inherited from:
IterableOps
def filterNot(pred: A => Boolean): Seq[A]

Attributes

Inherited from:
IterableOps
def find(p: A => Boolean): Option[A]

Attributes

Inherited from:
IterableOnceOps
def findLast(p: A => Boolean): Option[A]

Attributes

Inherited from:
SeqOps
def flatMap[B](f: A => IterableOnce[B]): Seq[B]

Attributes

Inherited from:
IterableOps
def flatten[B](implicit asIterable: A => IterableOnce[B]): Seq[B]

Attributes

Inherited from:
IterableOps
final def flattenChunk[B](using ev: A =:= Chunk[B]): Chunk[B]

Flattens a Chunk of Chunks into a single Chunk.

Flattens a Chunk of Chunks into a single Chunk.

Value parameters

ev

evidence that A is a Chunk[B]

Attributes

Returns

a flattened Chunk

Inherited from:
Chunk
def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1

Attributes

Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, A) => B): B

Attributes

Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: (A, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def forall(p: A => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def foreach[U](f: A => U): Unit

Attributes

Inherited from:
IterableOnceOps
protected def fromSpecific(coll: IterableOnce[A]): Seq[A]

Attributes

Inherited from:
IterableFactoryDefaults
def groupBy[K](f: A => K): Map[K, Seq[A]]

Attributes

Inherited from:
IterableOps
def groupMap[K, B](key: A => K)(f: A => B): Map[K, Seq[B]]

Attributes

Inherited from:
IterableOps
def groupMapReduce[K, B](key: A => K)(f: A => B)(reduce: (B, B) => B): Map[K, B]

Attributes

Inherited from:
IterableOps
def grouped(size: Int): Iterator[Seq[A]]

Attributes

Inherited from:
IterableOps
override def hashCode(): Int

Calculates a hash code value for the object.

Calculates a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Definition Classes
Seq -> Any
Inherited from:
Seq
def headOption: Option[A]

Attributes

Inherited from:
IterableOps
def indexOf[B >: A](elem: B): Int

Attributes

Inherited from:
SeqOps
def indexOf[B >: A](elem: B, from: Int): Int

Attributes

Inherited from:
SeqOps
def indexOfSlice[B >: A](that: Seq[B]): Int

Attributes

Inherited from:
SeqOps
def indexOfSlice[B >: A](that: Seq[B], from: Int): Int

Attributes

Inherited from:
SeqOps
def indexWhere(p: A => Boolean): Int

Attributes

Inherited from:
SeqOps
def indexWhere(p: A => Boolean, from: Int): Int

Attributes

Inherited from:
SeqOps
def indices: Range

Attributes

Inherited from:
SeqOps
def init: Seq[A]

Attributes

Inherited from:
IterableOps
def inits: Iterator[Seq[A]]

Attributes

Inherited from:
IterableOps
def intersect[B >: A](that: Seq[B]): Seq[A]

Attributes

Inherited from:
SeqOps
def isDefinedAt(idx: Int): Boolean

Attributes

Inherited from:
SeqOps
final override def isEmpty: Boolean

Checks if the Chunk is empty.

Checks if the Chunk is empty.

Attributes

Returns

true if the Chunk contains no elements, false otherwise

Definition Classes
Chunk -> SeqOps -> IterableOnceOps
Inherited from:
Chunk
override def isTraversableAgain: Boolean

Attributes

Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
override def iterableFactory: SeqFactory[Seq]

Attributes

Definition Classes
Seq -> Seq -> Iterable -> Iterable -> IterableOps
Inherited from:
Seq
def iterator: Iterator[A]

Returns an iterator over the elements of the Chunk.

Returns an iterator over the elements of the Chunk.

Attributes

Returns

an Iterator[A] over the elements of the Chunk

Inherited from:
Chunk
def knownSize: Int

Attributes

Inherited from:
IterableOnce
override def last: A

Returns the last element of the Chunk.

Returns the last element of the Chunk.

Attributes

Returns

the last element

Throws
NoSuchElementException

if the Chunk is empty

Definition Classes
Chunk -> IterableOps
Inherited from:
Chunk
def lastIndexOf[B >: A](elem: B, end: Int): Int

Attributes

Inherited from:
SeqOps
def lastIndexOfSlice[B >: A](that: Seq[B]): Int

Attributes

Inherited from:
SeqOps
def lastIndexOfSlice[B >: A](that: Seq[B], end: Int): Int

Attributes

Inherited from:
SeqOps
def lastIndexWhere(p: A => Boolean): Int

Attributes

Inherited from:
SeqOps
def lastIndexWhere(p: A => Boolean, end: Int): Int

Attributes

Inherited from:
SeqOps
def lastOption: Option[A]

Attributes

Inherited from:
IterableOps
def lazyZip[B](that: Iterable[B]): LazyZip2[A, B, Iterable.this.type]

Attributes

Inherited from:
Iterable
def lengthCompare(that: Iterable[_]): Int

Attributes

Inherited from:
SeqOps
def lengthCompare(len: Int): Int

Attributes

Inherited from:
SeqOps
final def lengthIs: SizeCompareOps

Attributes

Inherited from:
SeqOps
def lift: Int => Option[A]

Attributes

Inherited from:
PartialFunction
def map[B](f: A => B): Seq[B]

Attributes

Inherited from:
IterableOps
def max[B >: A](implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def maxBy[B](f: A => B)(implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def maxByOption[B](f: A => B)(implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def maxOption[B >: A](implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def min[B >: A](implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def minBy[B](f: A => B)(implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def minByOption[B](f: A => B)(implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def minOption[B >: A](implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
final def mkString: String

Attributes

Inherited from:
IterableOnceOps
final def mkString(sep: String): String

Attributes

Inherited from:
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String

Attributes

Inherited from:
IterableOnceOps
protected def newSpecificBuilder: Builder[A, Seq[A]]

Attributes

Inherited from:
IterableFactoryDefaults
def nonEmpty: Boolean

Attributes

Inherited from:
IterableOnceOps
def orElse[A1 <: Int, B1 >: A](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

Attributes

Inherited from:
PartialFunction
def padTo[B >: A](len: Int, elem: B): Seq[B]

Attributes

Inherited from:
SeqOps
def partition(p: A => Boolean): (Seq[A], Seq[A])

Attributes

Inherited from:
IterableOps
def partitionMap[A1, A2](f: A => Either[A1, A2]): (Seq[A1], Seq[A2])

Attributes

Inherited from:
IterableOps
def patch[B >: A](from: Int, other: IterableOnce[B], replaced: Int): Seq[B]

Attributes

Inherited from:
SeqOps
def permutations: Iterator[Seq[A]]

Attributes

Inherited from:
SeqOps
def prepended[B >: A](elem: B): Seq[B]

Attributes

Inherited from:
SeqOps
def prependedAll[B >: A](prefix: IterableOnce[B]): Seq[B]

Attributes

Inherited from:
SeqOps
def product[B >: A](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def reduce[B >: A](op: (B, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeft[B >: A](op: (B, A) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceOption[B >: A](op: (B, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceRight[B >: A](op: (A, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceRightOption[B >: A](op: (A, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reverse: Seq[A]

Attributes

Inherited from:
SeqOps
def reverseIterator: Iterator[A]

Attributes

Inherited from:
SeqOps
protected def reversed: Iterable[A]

Attributes

Inherited from:
IterableOnceOps
def runWith[U](action: A => U): Int => Boolean

Attributes

Inherited from:
PartialFunction
def sameElements[B >: A](that: IterableOnce[B]): Boolean

Attributes

Inherited from:
SeqOps
def scala$collection$SeqOps$$super$concat[B >: A](suffix: IterableOnce[B]): Seq[B]

Attributes

Inherited from:
SeqOps
def scala$collection$SeqOps$$super$sizeCompare(that: Iterable[_]): Int

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps
def scan[B >: A](z: B)(op: (B, B) => B): Seq[B]

Attributes

Inherited from:
IterableOps
def scanLeft[B](z: B)(op: (B, A) => B): Seq[B]

Attributes

Inherited from:
IterableOps
def scanRight[B](z: B)(op: (A, B) => B): Seq[B]

Attributes

Inherited from:
IterableOps
def search[B >: A](elem: B, from: Int, to: Int)(implicit ord: Ordering[B]): SearchResult

Attributes

Inherited from:
SeqOps
def search[B >: A](elem: B)(implicit ord: Ordering[B]): SearchResult

Attributes

Inherited from:
SeqOps
def segmentLength(p: A => Boolean, from: Int): Int

Attributes

Inherited from:
SeqOps
final def segmentLength(p: A => Boolean): Int

Attributes

Inherited from:
SeqOps
final override def size: Int

Attributes

Definition Classes
SeqOps -> IterableOnceOps
Inherited from:
SeqOps
final override def sizeCompare(that: Iterable[_]): Int

Attributes

Definition Classes
SeqOps -> IterableOps
Inherited from:
SeqOps
final override def sizeCompare(otherSize: Int): Int

Attributes

Definition Classes
SeqOps -> IterableOps
Inherited from:
SeqOps
final def sizeIs: SizeCompareOps

Attributes

Inherited from:
IterableOps
override def slice(from: Int, until: Int): Chunk[A]

Returns a Chunk that is a slice of this Chunk.

Returns a Chunk that is a slice of this Chunk.

Value parameters

from

the starting index of the slice

until

the ending index (exclusive) of the slice

Attributes

Returns

a new Chunk containing the specified slice

Definition Classes
Chunk -> IterableOps -> IterableOnceOps
Inherited from:
Chunk
def sliding(size: Int, step: Int): Iterator[Seq[A]]

Attributes

Inherited from:
IterableOps
def sliding(size: Int): Iterator[Seq[A]]

Attributes

Inherited from:
IterableOps
def sortBy[B](f: A => B)(implicit ord: Ordering[B]): Seq[A]

Attributes

Inherited from:
SeqOps
def sortWith(lt: (A, A) => Boolean): Seq[A]

Attributes

Inherited from:
SeqOps
def sorted[B >: A](implicit ord: Ordering[B]): Seq[A]

Attributes

Inherited from:
SeqOps
def span(p: A => Boolean): (Seq[A], Seq[A])

Attributes

Inherited from:
IterableOps
override def splitAt(n: Int): (Seq[A], Seq[A])

Attributes

Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
def startsWith[B >: A](that: IterableOnce[B], offset: Int): Boolean

Attributes

Inherited from:
SeqOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[A, S]): S

Attributes

Inherited from:
IterableOnce
def sum[B >: A](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def tails: Iterator[Seq[A]]

Attributes

Inherited from:
IterableOps
override def take(n: Int): Chunk[A]

Takes the first n elements of the Chunk.

Takes the first n elements of the Chunk.

Value parameters

n

the number of elements to take

Attributes

Returns

a new Chunk containing the first n elements

Definition Classes
Chunk -> IterableOps -> IterableOnceOps
Inherited from:
Chunk
def takeRight(n: Int): Seq[A]

Attributes

Inherited from:
IterableOps
def takeWhile(p: A => Boolean): Seq[A]

Attributes

Inherited from:
IterableOps
override def tapEach[U](f: A => U): Seq[A]

Attributes

Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
def to[C1](factory: Factory[A, C1]): C1

Attributes

Inherited from:
IterableOnceOps
override def toArray[B >: A : ClassTag]: Array[B]

Converts this Chunk to an Array.

Converts this Chunk to an Array.

Attributes

Returns

an Array containing all elements of this Chunk

Definition Classes
Chunk -> IterableOnceOps
Inherited from:
Chunk
final def toBuffer[B >: A]: Buffer[B]

Attributes

Inherited from:
IterableOnceOps
final def toIndexed: Indexed[A]

Converts this Chunk to an Indexed Chunk.

Converts this Chunk to an Indexed Chunk.

Attributes

Returns

an Indexed version of this Chunk

Inherited from:
Chunk
def toIndexedSeq: IndexedSeq[A]

Attributes

Inherited from:
IterableOnceOps
def toList: List[A]

Attributes

Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: A <:< (K, V)): Map[K, V]

Attributes

Inherited from:
IterableOnceOps
final override def toSeq: Seq.this.type

Attributes

Definition Classes
Seq -> IterableOnceOps
Inherited from:
Seq
def toSet[B >: A]: Set[B]

Attributes

Inherited from:
IterableOnceOps
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Seq -> Function1 -> Iterable -> Any
Inherited from:
Seq
def toVector: Vector[A]

Attributes

Inherited from:
IterableOnceOps
def transpose[B](implicit asIterable: A => Iterable[B]): Seq[Seq[B]]

Attributes

Inherited from:
IterableOps
def unapply(a: Int): Option[A]

Attributes

Inherited from:
PartialFunction
def unzip[A1, A2](implicit asPair: A => (A1, A2)): (Seq[A1], Seq[A2])

Attributes

Inherited from:
IterableOps
def unzip3[A1, A2, A3](implicit asTriple: A => (A1, A2, A3)): (Seq[A1], Seq[A2], Seq[A3])

Attributes

Inherited from:
IterableOps
def updated[B >: A](index: Int, elem: B): Seq[B]

Attributes

Inherited from:
SeqOps
override def view: SeqView[A]

Attributes

Definition Classes
SeqOps -> IterableOps
Inherited from:
SeqOps
def withFilter(p: A => Boolean): WithFilter[A, Seq]

Attributes

Inherited from:
IterableOps
def zip[B](that: IterableOnce[B]): Seq[(A, B)]

Attributes

Inherited from:
IterableOps
def zipAll[A1 >: A, B](that: Iterable[B], thisElem: A1, thatElem: B): Seq[(A1, B)]

Attributes

Inherited from:
IterableOps
def zipWithIndex: Seq[(A, Int)]

Attributes

Inherited from:
IterableOps

Inherited and Abstract methods

def length: Int

Attributes

Inherited from:
SeqOps

Deprecated and Inherited methods

final def /:[B](z: B)(op: (B, A) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
final def :\[B](z: B)(op: (A, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
def aggregate[B](z: => B)(seqop: (B, A) => B, combop: (B, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] For sequential collections, prefer `foldLeft(z)(seqop)`. For parallel collections, use `ParIterableLike#aggregate`.
Inherited from:
IterableOnceOps
def companion: IterableFactory[Seq]

Attributes

Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from:
IterableOps
final def copyToBuffer[B >: A](dest: Buffer[B]): Unit

Attributes

Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps
def hasDefiniteSize: Boolean

Attributes

Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from:
IterableOnceOps
final def prefixLength(p: A => Boolean): Int

Attributes

Deprecated
[Since version 2.13.0] Use segmentLength instead of prefixLength
Inherited from:
SeqOps
final def repr: Seq[A]

Attributes

Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from:
IterableOps
def reverseMap[B](f: A => B): Seq[B]

Attributes

Deprecated
[Since version 2.13.0] Use .reverseIterator.map(f).to(...) instead of .reverseMap(f)
Inherited from:
SeqOps
def seq: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from:
Iterable
final def toIterable: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.7] toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
Iterable
final def toIterator: Iterator[A]

Attributes

Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
final def toStream: Stream[A]

Attributes

Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps
final def toTraversable: Iterable[A]

Attributes

Deprecated
[Since version 2.13.0] toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
IterableOps
final def union[B >: A](that: Seq[B]): Seq[B]

Attributes

Deprecated
[Since version 2.13.0] Use `concat` instead
Inherited from:
SeqOps
def view(from: Int, until: Int): View[A]

Attributes

Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Inherited from:
IterableOps