Showing content from https://www.scala-lang.org/api/2.13.10/scala/collection/immutable/List.html below:
Scala Standard Library 2.13.10 - scala.collection.immutable.List
sealed abstract class List[+A] extends AbstractSeq[A] with LinearSeq[A] with LinearSeqOps[A, List, List[A]] with StrictOptimizedLinearSeqOps[A, List, List[A]] with StrictOptimizedSeqOps[A, List, List[A]] with IterableFactoryDefaults[A, List] with DefaultSerializable
î·î
Ordering
- Alphabetic
- By Inheritance
Inherited
- List
- DefaultSerializable
- Serializable
- StrictOptimizedSeqOps
- StrictOptimizedLinearSeqOps
- StrictOptimizedSeqOps
- StrictOptimizedIterableOps
- LinearSeq
- LinearSeqOps
- LinearSeq
- LinearSeqOps
- AbstractSeq
- Seq
- SeqOps
- Iterable
- AbstractSeq
- Seq
- Equals
- SeqOps
- PartialFunction
- Function1
- AbstractIterable
- Iterable
- IterableFactoryDefaults
- IterableOps
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
Implicitly
- by UnliftOps
- by iterableOnceExtensionMethods
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
Visibility
- Public
- Protected
Value Members
- î
final def !=(arg0: Any): Boolean
- î
final def ##: Int
- î
def +(other: String): String
- î
final def ++[B >: A](suffix: IterableOnce[B]): List[B]
- î
final def ++:[B >: A](prefix: IterableOnce[B]): List[B]
- î
final def +:[B >: A](elem: B): List[B]
- î
def ->[B](y: B): (List[A], B)
- î
final def :+[B >: A](elem: B): List[B]
- î
final def :++[B >: A](suffix: IterableOnce[B]): List[B]
- î
def ::[B >: A](elem: B): List[B]
- î
def :::[B >: A](prefix: List[B]): List[B]
- î
final def ==(arg0: Any): Boolean
- î
final def addString(b: mutable.StringBuilder): b.type
- î
final def addString(b: mutable.StringBuilder, sep: String): b.type
- î
def addString(b: mutable.StringBuilder, start: String, sep: String, end: String): b.type
- î
def andThen[C](k: PartialFunction[A, C]): PartialFunction[Int, C]
- î
def andThen[C](k: (A) => C): PartialFunction[Int, C]
- î
def appended[B >: A](elem: B): List[B]
- î
def appendedAll[B >: A](suffix: IterableOnce[B]): List[B]
- î
def apply(n: Int): A
- î
def applyOrElse[A1 <: Int, B1 >: A](x: A1, default: (A1) => B1): B1
- î
final def asInstanceOf[T0]: T0
- î
def canEqual(that: Any): Boolean
- î
def className: String
- î
def clone(): AnyRef
- î
final def coll: List.this.type
- î
final def collect[B](pf: PartialFunction[A, B]): List[B]
- î
def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
- î
def combinations(n: Int): Iterator[List[A]]
- î
def compose[R](k: PartialFunction[R, Int]): PartialFunction[R, A]
- î
def compose[A](g: (A) => Int): (A) => A
- î
final def concat[B >: A](suffix: IterableOnce[B]): List[B]
- î
final def contains[A1 >: A](elem: A1): Boolean
- î
def containsSlice[B >: A](that: collection.Seq[B]): Boolean
- î
def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int
- î
def copyToArray[B >: A](xs: Array[B], start: Int): Int
- î
def copyToArray[B >: A](xs: Array[B]): Int
- î
def corresponds[B](that: collection.Seq[B])(p: (A, B) => Boolean): Boolean
- î
def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean
- î
def count(p: (A) => Boolean): Int
- î
def diff[B >: A](that: collection.Seq[B]): List[A]
- î
def distinct: List[A]
- î
def distinctBy[B](f: (A) => B): List[A]
- î
def drop(n: Int): List[A]
- î
def dropRight(n: Int): List[A]
- î
def dropWhile(p: (A) => Boolean): List[A]
- î
def elementWise: ElementWiseExtractor[Int, A]
- î
def empty: List[A]
- î
def endsWith[B >: A](that: collection.Iterable[B]): Boolean
- î
def ensuring(cond: (List[A]) => Boolean, msg: => Any): List[A]
- î
def ensuring(cond: (List[A]) => Boolean): List[A]
- î
def ensuring(cond: Boolean, msg: => Any): List[A]
- î
def ensuring(cond: Boolean): List[A]
- î
final def eq(arg0: AnyRef): Boolean
- î
def equals(o: Any): Boolean
- î
final def exists(p: (A) => Boolean): Boolean
- î
def filter(p: (A) => Boolean): List[A]
- î
def filterImpl(pred: (A) => Boolean, isFlipped: Boolean): List[A]
- î
def filterNot(p: (A) => Boolean): List[A]
- î
def finalize(): Unit
- î
final def find(p: (A) => Boolean): Option[A]
- î
def findLast(p: (A) => Boolean): Option[A]
- î
final def flatMap[B](f: (A) => IterableOnce[B]): List[B]
- î
def flatten[B](implicit toIterableOnce: (A) => IterableOnce[B]): List[B]
- î
def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
- î
def foldLeft[B](z: B)(op: (B, A) => B): B
- î
final def foldRight[B](z: B)(op: (A, B) => B): B
- î
final def forall(p: (A) => Boolean): Boolean
- î
final def foreach[U](f: (A) => U): Unit
- î
def fromSpecific(coll: IterableOnce[A]): List[A]
- î
final def getClass(): Class[_ <: AnyRef]
- î
def groupBy[K](f: (A) => K): Map[K, List[A]]
- î
def groupMap[K, B](key: (A) => K)(f: (A) => B): Map[K, List[B]]
- î
def groupMapReduce[K, B](key: (A) => K)(f: (A) => B)(reduce: (B, B) => B): Map[K, B]
- î
def grouped(size: Int): Iterator[List[A]]
- î
def hashCode(): Int
- î
def head: A
- î
def headOption: Option[A]
- î
def indexOf[B >: A](elem: B): Int
- î
def indexOf[B >: A](elem: B, from: Int): Int
- î
def indexOfSlice[B >: A](that: collection.Seq[B]): Int
- î
def indexOfSlice[B >: A](that: collection.Seq[B], from: Int): Int
- î
def indexWhere(p: (A) => Boolean, from: Int): Int
- î
def indexWhere(p: (A) => Boolean): Int
- î
def indices: Range
- î
def init: List[A]
- î
def inits: Iterator[List[A]]
- î
def intersect[B >: A](that: collection.Seq[B]): List[A]
- î
def isDefinedAt(x: Int): Boolean
- î
final def isEmpty: Boolean
- î
final def isInstanceOf[T0]: Boolean
- î
def isTraversableAgain: Boolean
- î
def iterableFactory: SeqFactory[List]
- î
def iterator: Iterator[A]
- î
def knownSize: Int
- î
def last: A
- î
def lastIndexOf[B >: A](elem: B, end: Int = length - 1): Int
- î
def lastIndexOfSlice[B >: A](that: collection.Seq[B]): Int
- î
def lastIndexOfSlice[B >: A](that: collection.Seq[B], end: Int): Int
- î
def lastIndexWhere(p: (A) => Boolean, end: Int): Int
- î
def lastIndexWhere(p: (A) => Boolean): Int
- î
def lastOption: Option[A]
- î
def lazyZip[B](that: collection.Iterable[B]): LazyZip2[A, B, List.this.type]
- î
final def length: Int
- î
final def lengthCompare(len: Int): Int
- î
def lengthCompare(that: collection.Iterable[_]): Int
- î
final def lengthIs: SizeCompareOps
- î
def lift: (Int) => Option[A]
- î
final def map[B](f: (A) => B): List[B]
- î
final def mapConserve[B >: A <: AnyRef](f: (A) => B): List[B]
- î
def max[B >: A](implicit ord: math.Ordering[B]): A
- î
def maxBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
- î
def maxByOption[B](f: (A) => B)(implicit cmp: math.Ordering[B]): Option[A]
- î
def maxOption[B >: A](implicit ord: math.Ordering[B]): Option[A]
- î
def min[B >: A](implicit ord: math.Ordering[B]): A
- î
def minBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
- î
def minByOption[B](f: (A) => B)(implicit cmp: math.Ordering[B]): Option[A]
- î
def minOption[B >: A](implicit ord: math.Ordering[B]): Option[A]
- î
final def mkString: String
- î
final def mkString(sep: String): String
- î
final def mkString(start: String, sep: String, end: String): String
- î
final def ne(arg0: AnyRef): Boolean
- î
def newSpecificBuilder: Builder[A, List[A]]
- î
def nonEmpty: Boolean
- î
final def notify(): Unit
- î
final def notifyAll(): Unit
- î
def occCounts[B](sq: collection.Seq[B]): mutable.Map[B, Int]
- î
def orElse[A1 <: Int, B1 >: A](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
- î
def padTo[B >: A](len: Int, elem: B): List[B]
- î
def partition(p: (A) => Boolean): (List[A], List[A])
- î
def partitionMap[A1, A2](f: (A) => Either[A1, A2]): (List[A1], List[A2])
- î
def patch[B >: A](from: Int, other: IterableOnce[B], replaced: Int): List[B]
- î
def permutations: Iterator[List[A]]
- î
def prepended[B >: A](elem: B): List[B]
- î
def prependedAll[B >: A](prefix: IterableOnce[B]): List[B]
- î
def product[B >: A](implicit num: math.Numeric[B]): B
- î
def reduce[B >: A](op: (B, B) => B): B
- î
def reduceLeft[B >: A](op: (B, A) => B): B
- î
def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
- î
def reduceOption[B >: A](op: (B, B) => B): Option[B]
- î
def reduceRight[B >: A](op: (A, B) => B): B
- î
def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
- î
final def reverse: List[A]
- î
def reverseIterator: Iterator[A]
- î
def reverse_:::[B >: A](prefix: List[B]): List[B]
- î
def reversed: collection.Iterable[A]
- î
def runWith[U](action: (A) => U): (Int) => Boolean
- î
def sameElements[B >: A](that: IterableOnce[B]): Boolean
- î
def scan[B >: A](z: B)(op: (B, B) => B): List[B]
- î
def scanLeft[B](z: B)(op: (B, A) => B): List[B]
- î
def scanRight[B](z: B)(op: (A, B) => B): List[B]
- î
def search[B >: A](elem: B, from: Int, to: Int)(implicit ord: Ordering[B]): SearchResult
- î
def search[B >: A](elem: B)(implicit ord: Ordering[B]): SearchResult
- î
def segmentLength(p: (A) => Boolean, from: Int): Int
- î
final def segmentLength(p: (A) => Boolean): Int
- î
final def size: Int
- î
final def sizeCompare(that: collection.Iterable[_]): Int
- î
final def sizeCompare(otherSize: Int): Int
- î
final def sizeIs: SizeCompareOps
- î
def slice(from: Int, until: Int): List[A]
- î
def sliding(size: Int, step: Int): Iterator[List[A]]
- î
def sliding(size: Int): Iterator[List[A]]
- î
def sortBy[B](f: (A) => B)(implicit ord: Ordering[B]): List[A]
- î
def sortWith(lt: (A, A) => Boolean): List[A]
- î
def sorted[B >: A](implicit ord: Ordering[B]): List[A]
- î
final def span(p: (A) => Boolean): (List[A], List[A])
- î
def splitAt(n: Int): (List[A], List[A])
- î
def startsWith[B >: A](that: IterableOnce[B], offset: Int = 0): Boolean
- î
def stepper[S <: Stepper[_]](implicit shape: StepperShape[A, S]): S
- î
final def strictOptimizedCollect[B, C2](b: Builder[B, C2], pf: PartialFunction[A, B]): C2
- î
final def strictOptimizedConcat[B >: A, C2](that: IterableOnce[B], b: Builder[B, C2]): C2
- î
final def strictOptimizedFlatMap[B, C2](b: Builder[B, C2], f: (A) => IterableOnce[B]): C2
- î
final def strictOptimizedFlatten[B, C2](b: Builder[B, C2])(implicit toIterableOnce: (A) => IterableOnce[B]): C2
- î
final def strictOptimizedMap[B, C2](b: Builder[B, C2], f: (A) => B): C2
- î
final def strictOptimizedZip[B, C2](that: IterableOnce[B], b: Builder[(A, B), C2]): C2
- î
def stringPrefix: String
- î
def sum[B >: A](implicit num: math.Numeric[B]): B
- î
final def synchronized[T0](arg0: => T0): T0
- î
def tail: List[A]
- î
def tails: Iterator[List[A]]
- î
def take(n: Int): List[A]
- î
def takeRight(n: Int): List[A]
- î
final def takeWhile(p: (A) => Boolean): List[A]
- î
def tapEach[U](f: (A) => U): List[A]
- î
def to[C1](factory: Factory[A, C1]): C1
- î
def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
- î
final def toBuffer[B >: A]: Buffer[B]
- î
def toIndexedSeq: IndexedSeq[A]
- î
final def toList: List[A]
- î
def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
- î
final def toSeq: List.this.type
- î
def toSet[B >: A]: Set[B]
- î
def toString(): String
- î
def toVector: Vector[A]
- î
def transpose[B](implicit asIterable: (A) => collection.Iterable[B]): List[List[B]]
- î
def unapply(a: Int): Option[A]
- î
def unlift: PartialFunction[Int, B]
- î
def unzip[A1, A2](implicit asPair: (A) => (A1, A2)): (List[A1], List[A2])
- î
def unzip3[A1, A2, A3](implicit asTriple: (A) => (A1, A2, A3)): (List[A1], List[A2], List[A3])
- î
def updated[B >: A](index: Int, elem: B): List[B]
- î
def view: SeqView[A]
- î
final def wait(): Unit
- î
final def wait(arg0: Long, arg1: Int): Unit
- î
final def wait(arg0: Long): Unit
- î
def withFilter(p: (A) => Boolean): WithFilter[A, [_]List[_]]
- î
def writeReplace(): AnyRef
- î
def zip[B](that: IterableOnce[B]): List[(A, B)]
- î
def zipAll[A1 >: A, B](that: collection.Iterable[B], thisElem: A1, thatElem: B): List[(A1, B)]
- î
def zipWithIndex: List[(A, Int)]
Deprecated Value Members
- î
def /:[B](z: B)(op: (B, A) => B): B
- î
final def /:[B](z: B)(op: (B, A) => B): B
- î
def :\[B](z: B)(op: (A, B) => B): B
- î
final def :\[B](z: B)(op: (A, B) => B): B
- î
def aggregate[B](z: => B)(seqop: (B, A) => B, combop: (B, B) => B): B
- î
def collectFirst[B](f: PartialFunction[A, B]): Option[B]
- î
def companion: IterableFactory[[_]List[_]]
- î
def copyToBuffer(dest: Buffer[A]): Unit
- î
final def copyToBuffer[B >: A](dest: Buffer[B]): Unit
- î
def count(f: (A) => Boolean): Int
- î
def exists(f: (A) => Boolean): Boolean
- î
def filter(f: (A) => Boolean): Iterator[A]
- î
def find(p: (A) => Boolean): Option[A]
- î
def flatMap[B](f: (A) => IterableOnce[B]): IterableOnce[B]
- î
def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
- î
def foldLeft[B](z: B)(op: (B, A) => B): B
- î
def foldRight[B](z: B)(op: (A, B) => B): B
- î
def forall(f: (A) => Boolean): Boolean
- î
def foreach[U](f: (A) => U): Unit
- î
def formatted(fmtstr: String): String
- î
def hasDefiniteSize: Boolean
- î
def isEmpty: Boolean
- î
def map[B](f: (A) => B): IterableOnce[B]
- î
def max(implicit ord: math.Ordering[A]): A
- î
def maxBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
- î
def min(implicit ord: math.Ordering[A]): A
- î
def minBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
- î
def mkString: String
- î
def mkString(sep: String): String
- î
def mkString(start: String, sep: String, end: String): String
- î
def nonEmpty: Boolean
- î
final def prefixLength(p: (A) => Boolean): Int
- î
def product(implicit num: math.Numeric[A]): A
- î
def reduce(f: (A, A) => A): A
- î
def reduceLeft(f: (A, A) => A): A
- î
def reduceLeftOption(f: (A, A) => A): Option[A]
- î
def reduceOption(f: (A, A) => A): Option[A]
- î
def reduceRight(f: (A, A) => A): A
- î
def reduceRightOption(f: (A, A) => A): Option[A]
- î
final def repr: List[A]
- î
def reverseMap[B](f: (A) => B): List[B]
- î
def sameElements[B >: A](that: IterableOnce[B]): Boolean
- î
def seq: List.this.type
- î
def size: Int
- î
def sum(implicit num: math.Numeric[A]): A
- î
def to[C1](factory: Factory[A, C1]): C1
- î
def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
- î
def toBuffer[B >: A]: Buffer[B]
- î
def toIndexedSeq: collection.IndexedSeq[A]
- î
final def toIterable: collection.Iterable[A]
- î
final def toIterable: List.this.type
- î
def toIterator: Iterator[A]
- î
final def toIterator: Iterator[A]
- î
def toList: List[A]
- î
def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
- î
def toSeq: Seq[A]
- î
def toSet[B >: A]: Set[B]
- î
def toStream: Stream[A]
- î
final def toStream: Stream[A]
- î
final def toTraversable: collection.Traversable[A]
- î
final def toTraversable: collection.Traversable[A]
- î
def toVector: Vector[A]
- î
final def union[B >: A](that: collection.Seq[B]): List[B]
- î
def view(from: Int, until: Int): View[A]
- î
def withFilter(f: (A) => Boolean): Iterator[A]
- î
def â[B](y: B): (List[A], B)
Inherited from (Int) => A
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4