LitSeq

class LitSeq[+T] extends IterableOps[T, LitSeq, LitSeq[T]] with PartialFunction[Int, T] with List[T]
Companion:
object
trait List[T]
trait Collection[T]
trait Iterable[T]
trait PartialFunction[Int, T]
trait Int => T
trait IterableOps[T, LitSeq, LitSeq[T]]
trait IterableOnceOps[T, LitSeq, LitSeq[T]]
trait IterableOnce[T]
class Object
trait Matchable
class Any

Value members

Constructors

def this(coll: Collection[T])
def this(initial: Iterable[T])

Concrete methods

def ++[T1 >: T](suffix: NonEmptyLitSeq[T1]): NonEmptyLitSeq[T1]
def ++[T1 >: T](suffix: Iterable[T1]): LitSeq[T1]
def +:[T1 >: T](elem: T1): NonEmptyLitSeq[T1]
def :+[T1 >: T](elem: T1): NonEmptyLitSeq[T1]
def append(elem: T): NonEmptyLitSeq[T]
def apply(i: Int): T
def concat(nonEmpty: NonEmptyLitSeq[T]): NonEmptyLitSeq[T]
def concat(that: Collection[T]): LitSeq[T]
override def contains(o: Object): Boolean
Definition Classes
List -> Collection
override def containsAll(collection: Collection[_]): Boolean
Definition Classes
List -> Collection
def corresponds[B](that: Seq[B])(p: (T, B) => Boolean): Boolean
def distinctBy[B](f: T => B): LitSeq[T]
override def equals(o: Any): Boolean
Definition Classes
List -> Collection -> Any
def get(i: Int): T
override def hashCode(): Int
Definition Classes
List -> Collection -> Any
def indexOf(x: Object): Int
def isDefinedAt(x: Int): Boolean
def iterableFactory: IterableFactory[LitSeq]
override def iterator(): LitSeqIterator[T]
Definition Classes
List -> Collection -> Iterable -> IterableOnce
def lastIndexOf(x: Object): Int
def length: Int
def listIterator(index: Int): LitSeqIterator[T]
def prepend(elem: T): NonEmptyLitSeq[T]
def refine: LitSeq[T]
def reverse: LitSeq[T]
def sortBy[B](f: T => B)(implicit ord: Ordering[B]): LitSeq[T]
def sortWith(lt: (T, T) => Boolean): LitSeq[T]
def sorted[B >: T](implicit ord: Ordering[B]): LitSeq[T]
def subList(from: Int, until: Int): LitSeq[T]
override def toArray: Array[AnyRef]
Definition Classes
override def toArray[T1](xs: Array[T1 & Object]): Array[T1 & Object]
Definition Classes
List -> Collection
def toIterable: Iterable[T]
@inline
final override def toSeq: Seq[T]
Definition Classes
IterableOnceOps
override def toString: String
Definition Classes
Function1 -> Any

Deprecated methods

@throws(scala.Predef.classOf[scala.NotImplementedError]) @deprecated("Do not use -- this collection is immutable")
override def add(e: T): Boolean
Deprecated
Definition Classes
List -> Collection
@throws(scala.Predef.classOf[scala.NotImplementedError]) @deprecated("Do not use -- this collection is immutable")
def add(x$1: Int, x$2: T): Unit
Deprecated
@throws(scala.Predef.classOf[scala.NotImplementedError]) @deprecated("Do not use -- this collection is immutable")
override def addAll(collection: Collection[_ <: T]): Boolean
Deprecated
Definition Classes
List -> Collection
@throws(scala.Predef.classOf[scala.NotImplementedError]) @deprecated("Do not use -- this collection is immutable")
def addAll(x$1: Int, x$2: Collection[_ <: T]): Boolean
Deprecated
@throws(scala.Predef.classOf[scala.NotImplementedError]) @deprecated("Do not use -- this collection is immutable")
override def clear(): Unit
Deprecated
Definition Classes
List -> Collection
@throws(scala.Predef.classOf[scala.NotImplementedError]) @deprecated("Do not use -- this collection is immutable")
override def remove(o: Any): Boolean
Deprecated
Definition Classes
List -> Collection
@throws(scala.Predef.classOf[scala.NotImplementedError]) @deprecated("Do not use -- this collection is immutable")
def remove(x$1: Int): T
Deprecated
@throws(scala.Predef.classOf[scala.NotImplementedError]) @deprecated("Do not use -- this collection is immutable")
override def removeAll(collection: Collection[_]): Boolean
Deprecated
Definition Classes
List -> Collection
@throws(scala.Predef.classOf[scala.NotImplementedError]) @deprecated("Do not use -- this collection is immutable")
override def retainAll(collection: Collection[_]): Boolean
Deprecated
Definition Classes
List -> Collection
@throws(scala.Predef.classOf[scala.NotImplementedError]) @deprecated("Do not use -- this collection is immutable")
def set(x$1: Int, x$2: T): T
Deprecated

Inherited methods

@inline
final def ++[B >: T](suffix: IterableOnce[B]): LitSeq[B]
Inherited from:
IterableOps
@inline
final def addString(b: StringBuilder): StringBuilder
Inherited from:
IterableOnceOps
@inline
final def addString(b: StringBuilder, sep: String): StringBuilder
Inherited from:
IterableOnceOps
def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
Inherited from:
IterableOnceOps
def andThen[C](k: PartialFunction[T, C]): PartialFunction[Int, C]
Inherited from:
PartialFunction
override def andThen[C](k: T => C): PartialFunction[Int, C]
Definition Classes
PartialFunction -> Function1
Inherited from:
PartialFunction
def applyOrElse[A1 <: Int, B1 >: T](x: A1, default: A1 => B1): B1
Inherited from:
PartialFunction
def collect[B](pf: PartialFunction[T, B]): LitSeq[B]
Inherited from:
IterableOps
def collectFirst[B](pf: PartialFunction[T, B]): Option[B]
Inherited from:
IterableOnceOps
def compose[R](k: PartialFunction[R, Int]): PartialFunction[R, T]
Inherited from:
PartialFunction
@unspecialized
def compose[A](g: A => Int): A => T
Inherited from:
Function1
def concat[B >: T](suffix: IterableOnce[B]): LitSeq[B]
Inherited from:
IterableOps
def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Int
Inherited from:
IterableOnceOps
@deprecatedOverriding(message = "This should always forward to the 3-arg version of this method", since = "2.13.4")
def copyToArray[B >: T](xs: Array[B], start: Int): Int
Inherited from:
IterableOnceOps
@deprecatedOverriding(message = "This should always forward to the 3-arg version of this method", since = "2.13.4")
def copyToArray[B >: T](xs: Array[B]): Int
Inherited from:
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: (T, B) => Boolean): Boolean
Inherited from:
IterableOnceOps
def count(p: T => Boolean): Int
Inherited from:
IterableOnceOps
def drop(n: Int): LitSeq[T]
Inherited from:
IterableOps
def dropRight(n: Int): LitSeq[T]
Inherited from:
IterableOps
def dropWhile(p: T => Boolean): LitSeq[T]
Inherited from:
IterableOps
def elementWise: ElementWiseExtractor[Int, T]
Inherited from:
PartialFunction
def empty: LitSeq[T]
Inherited from:
IterableOps
def exists(p: T => Boolean): Boolean
Inherited from:
IterableOnceOps
def filter(pred: T => Boolean): LitSeq[T]
Inherited from:
IterableOps
def filterNot(pred: T => Boolean): LitSeq[T]
Inherited from:
IterableOps
def find(p: T => Boolean): Option[T]
Inherited from:
IterableOnceOps
def flatMap[B](f: T => IterableOnce[B]): LitSeq[B]
Inherited from:
IterableOps
def flatten[B](implicit asIterable: T => IterableOnce[B]): LitSeq[B]
Inherited from:
IterableOps
def fold[A1 >: T](z: A1)(op: (A1, A1) => A1): A1
Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, T) => B): B
Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: (T, B) => B): B
Inherited from:
IterableOnceOps
def forEach(x$0: Consumer[_ >: T <: <FromJavaObject>]): Unit
Inherited from:
Iterable
def forall(p: T => Boolean): Boolean
Inherited from:
IterableOnceOps
def foreach[U](f: T => U): Unit
Inherited from:
IterableOnceOps
def groupBy[K](f: T => K): Map[K, LitSeq[T]]
Inherited from:
IterableOps
def groupMap[K, B](key: T => K)(f: T => B): Map[K, LitSeq[B]]
Inherited from:
IterableOps
def groupMapReduce[K, B](key: T => K)(f: T => B)(reduce: (B, B) => B): Map[K, B]
Inherited from:
IterableOps
def grouped(size: Int): Iterator[LitSeq[T]]
Inherited from:
IterableOps
def head: T
Inherited from:
IterableOps
def headOption: Option[T]
Inherited from:
IterableOps
def init: LitSeq[T]
Inherited from:
IterableOps
def inits: Iterator[LitSeq[T]]
Inherited from:
IterableOps
def isEmpty: Boolean
Inherited from:
IterableOnceOps
override def isTraversableAgain: Boolean
Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
def knownSize: Int
Inherited from:
IterableOnce
def last: T
Inherited from:
IterableOps
def lastOption: Option[T]
Inherited from:
IterableOps
def lift: Int => Option[T]
Inherited from:
PartialFunction
def map[B](f: T => B): LitSeq[B]
Inherited from:
IterableOps
def max[B >: T](implicit ord: Ordering[B]): T
Inherited from:
IterableOnceOps
def maxBy[B](f: T => B)(implicit cmp: Ordering[B]): T
Inherited from:
IterableOnceOps
def maxByOption[B](f: T => B)(implicit cmp: Ordering[B]): Option[T]
Inherited from:
IterableOnceOps
def maxOption[B >: T](implicit ord: Ordering[B]): Option[T]
Inherited from:
IterableOnceOps
def min[B >: T](implicit ord: Ordering[B]): T
Inherited from:
IterableOnceOps
def minBy[B](f: T => B)(implicit cmp: Ordering[B]): T
Inherited from:
IterableOnceOps
def minByOption[B](f: T => B)(implicit cmp: Ordering[B]): Option[T]
Inherited from:
IterableOnceOps
def minOption[B >: T](implicit ord: Ordering[B]): Option[T]
Inherited from:
IterableOnceOps
@inline
final def mkString: String
Inherited from:
IterableOnceOps
@inline
final def mkString(sep: String): String
Inherited from:
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String
Inherited from:
IterableOnceOps
@deprecatedOverriding(message = "nonEmpty is defined as !isEmpty; override isEmpty instead", since = "2.13.0")
def nonEmpty: Boolean
Inherited from:
IterableOnceOps
def orElse[A1 <: Int, B1 >: T](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
Inherited from:
PartialFunction
def parallelStream(): Stream[T]
Inherited from:
Collection
def partition(p: T => Boolean): (LitSeq[T], LitSeq[T])
Inherited from:
IterableOps
def partitionMap[A1, A2](f: T => Either[A1, A2]): (LitSeq[A1], LitSeq[A2])
Inherited from:
IterableOps
def product[B >: T](implicit num: Numeric[B]): B
Inherited from:
IterableOnceOps
def reduce[B >: T](op: (B, B) => B): B
Inherited from:
IterableOnceOps
def reduceLeft[B >: T](op: (B, T) => B): B
Inherited from:
IterableOnceOps
def reduceLeftOption[B >: T](op: (B, T) => B): Option[B]
Inherited from:
IterableOnceOps
def reduceOption[B >: T](op: (B, B) => B): Option[B]
Inherited from:
IterableOnceOps
def reduceRight[B >: T](op: (T, B) => B): B
Inherited from:
IterableOnceOps
def reduceRightOption[B >: T](op: (T, B) => B): Option[B]
Inherited from:
IterableOnceOps
def removeIf(x$0: Predicate[_ >: T <: <FromJavaObject>]): Boolean
Inherited from:
Collection
def replaceAll(x$0: UnaryOperator[T]): Unit
Inherited from:
List
protected def reversed: Iterable[T]
Inherited from:
IterableOnceOps
def runWith[U](action: T => U): Int => Boolean
Inherited from:
PartialFunction
def scan[B >: T](z: B)(op: (B, B) => B): LitSeq[B]
Inherited from:
IterableOps
def scanLeft[B](z: B)(op: (B, T) => B): LitSeq[B]
Inherited from:
IterableOps
def scanRight[B](z: B)(op: (T, B) => B): LitSeq[B]
Inherited from:
IterableOps
def size: Int
Inherited from:
IterableOnceOps
def sizeCompare(that: Iterable[_]): Int
Inherited from:
IterableOps
def sizeCompare(otherSize: Int): Int
Inherited from:
IterableOps
@inline
final def sizeIs: SizeCompareOps
Inherited from:
IterableOps
def slice(from: Int, until: Int): LitSeq[T]
Inherited from:
IterableOps
def sliding(size: Int, step: Int): Iterator[LitSeq[T]]
Inherited from:
IterableOps
def sliding(size: Int): Iterator[LitSeq[T]]
Inherited from:
IterableOps
def sort(x$0: Comparator[_ >: T <: <FromJavaObject>]): Unit
Inherited from:
List
def span(p: T => Boolean): (LitSeq[T], LitSeq[T])
Inherited from:
IterableOps
override def splitAt(n: Int): (LitSeq[T], LitSeq[T])
Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
def spliterator(): Spliterator[T]
Inherited from:
List
def stepper[S <: Stepper[_]](implicit shape: StepperShape[T, S]): S
Inherited from:
IterableOnce
def stream(): Stream[T]
Inherited from:
Collection
def sum[B >: T](implicit num: Numeric[B]): B
Inherited from:
IterableOnceOps
def tail: LitSeq[T]
Inherited from:
IterableOps
def tails: Iterator[LitSeq[T]]
Inherited from:
IterableOps
def take(n: Int): LitSeq[T]
Inherited from:
IterableOps
def takeRight(n: Int): LitSeq[T]
Inherited from:
IterableOps
def takeWhile(p: T => Boolean): LitSeq[T]
Inherited from:
IterableOps
override def tapEach[U](f: T => U): LitSeq[T]
Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
def to[C1](factory: Factory[T, C1]): C1
Inherited from:
IterableOnceOps
def toArray[T <: <FromJavaObject>](x$0: IntFunction[Array[Object & T]]): Array[Object & T]
Inherited from:
Collection
def toArray[B >: T : ClassTag]: Array[B]
Inherited from:
IterableOnceOps
@inline
final def toBuffer[B >: T]: Buffer[B]
Inherited from:
IterableOnceOps
def toIndexedSeq: IndexedSeq[T]
Inherited from:
IterableOnceOps
def toList: List[T]
Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: T <:< (K, V)): Map[K, V]
Inherited from:
IterableOnceOps
def toSet[B >: T]: Set[B]
Inherited from:
IterableOnceOps
def toVector: Vector[T]
Inherited from:
IterableOnceOps
def transpose[B](implicit asIterable: T => Iterable[B]): LitSeq[LitSeq[B]]
Inherited from:
IterableOps
def unapply(a: Int): Option[T]
Inherited from:
PartialFunction
def unzip[A1, A2](implicit asPair: T => (A1, A2)): (LitSeq[A1], LitSeq[A2])
Inherited from:
IterableOps
def unzip3[A1, A2, A3](implicit asTriple: T => (A1, A2, A3)): (LitSeq[A1], LitSeq[A2], LitSeq[A3])
Inherited from:
IterableOps
def view: View[T]
Inherited from:
IterableOps
def withFilter(p: T => Boolean): WithFilter[T, LitSeq]
Inherited from:
IterableOps
def zip[B](that: IterableOnce[B]): LitSeq[(T, B)]
Inherited from:
IterableOps
def zipAll[A1 >: T, B](that: Iterable[B], thisElem: A1, thatElem: B): LitSeq[(A1, B)]
Inherited from:
IterableOps
def zipWithIndex: LitSeq[(T, Int)]
Inherited from:
IterableOps

Deprecated and Inherited methods

@deprecated(message = "Use ++ instead of ++: for collections of type Iterable", since = "2.13.0")
def ++:[B >: T](that: IterableOnce[B]): LitSeq[B]
Deprecated
[Since version 2.13.0] Use ++ instead of ++: for collections of type Iterable
Inherited from:
IterableOps
@inline @deprecated(message = "Use foldLeft instead of /:", since = "2.13.0")
final def /:[B](z: B)(op: (B, T) => B): B
Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
@inline @deprecated(message = "Use foldRight instead of :\\", since = "2.13.0")
final def :\[B](z: B)(op: (T, B) => B): B
Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
@deprecated(message = "`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.", since = "2.13.0")
def aggregate[B](z: => B)(seqop: (B, T) => B, combop: (B, B) => B): B
Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from:
IterableOnceOps
@inline @deprecatedOverriding(message = "Use iterableFactory instead", since = "2.13.0") @deprecated(message = "Use iterableFactory instead", since = "2.13.0")
def companion: IterableFactory[LitSeq]
Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from:
IterableOps
@inline @deprecated(message = "Use `dest ++= coll` instead", since = "2.13.0")
final def copyToBuffer[B >: T](dest: Buffer[B]): Unit
Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps
@deprecated(message = "Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)", since = "2.13.0")
def hasDefiniteSize: Boolean
Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from:
IterableOnceOps
@deprecated(message = "Use coll instead of repr in a collection implementation, use the collection value itself from the outside", since = "2.13.0")
final def repr: LitSeq[T]
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
@inline @deprecated(message = "Use .iterator instead of .toIterator", since = "2.13.0")
final def toIterator: Iterator[T]
Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
@inline @deprecated(message = "Use .to(LazyList) instead of .toStream", since = "2.13.0")
final def toStream: Stream[T]
Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps
@deprecated(message = "toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections", since = "2.13.0")
final def toTraversable: Iterable[T]
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
@deprecated(message = "Use .view.slice(from, until) instead of .view(from, until)", since = "2.13.0")
def view(from: Int, until: Int): View[T]
Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Inherited from:
IterableOps