object List
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- List
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- type List[+A] = scala.collection.immutable.List[A]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def all[A](predicate: (A) => Boolean)(xs: List[A]): Boolean
- Annotations
- @inline()
- def any[A](predicate: (A) => Boolean)(xs: List[A]): Boolean
- Annotations
- @inline()
- def append[A](xs: List[A])(ys: List[A]): List[A]
- Annotations
- @inline()
- def apply[A](items: A*): List[A]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def concat[A](lists: List[List[A]]): List[A]
- Annotations
- @inline()
- def concatMap[A, B](f: (A) => List[B])(lists: List[A]): List[B]
- Annotations
- @inline()
- def cons[A](head: A)(tail: List[A]): List[A]
- Annotations
- @inline()
- def drop[A](n: Int)(xs: List[A]): List[A]
- Annotations
- @inline()
- def empty[A]: List[A]
- Annotations
- @inline()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filter[A](f: (A) => Boolean)(xs: List[A]): List[A]
- Annotations
- @inline()
- def filterMap[A, B](f: (A) => Maybe[B])(xs: List[A]): List[B]
- def foldl[A, B](f: (A) => (B) => B)(initial: B)(xs: List[A]): B
- def foldr[A, B](f: (A) => (B) => B)(initial: B)(xs: List[A]): B
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def head[A](xs: List[A]): Maybe[A]
- Annotations
- @inline()
- def indexedMap[X, R](fn: (Int) => (X) => R)(xs: List[X]): List[R]
- def innerJoin[A, B](listB: List[B])(f: (A) => (B) => Bool)(listA: List[A]): List[(A, B)]
- def intersperse[A](elem: A)(xs: List[A]): List[A]
- def isEmpty[A](list: List[A]): Boolean
- Annotations
- @inline()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def leftJoin[A, B](listB: List[B])(f: (A) => (B) => Bool)(listA: List[A]): List[(A, Maybe[B])]
- def length[A](xs: List[A]): Int
- Annotations
- @inline()
- def map[A, B](mapping: (A) => B)(list: List[A]): List[B]
- Annotations
- @inline()
- def map2[A, B, R](mapping: (A) => (B) => R)(xs: List[A])(ys: List[B]): List[R]
Combine two lists, combining them with the given function.
Combine two lists, combining them with the given function. If one list is longer, the extra elements are dropped.
- A
the type of the first list
- B
the type of the second list
- R
the type of the resulting list
- mapping
a mapping function
- xs
the first list
- ys
the second list
- returns
a list containing the combined elements of list1 and list2 using the mapping function.
- def map3[X, Y, Z, R](mapping: (X) => (Y) => (Z) => R)(xs: List[X])(ys: List[Y])(zs: List[Z]): List[R]
- def map4[A, B, C, D, R](mapping: (A) => (B) => (C) => (D) => R)(as: List[A])(bs: List[B])(cs: List[C])(ds: List[D]): List[R]
- def map5[A, B, C, D, E, R](mapping: (A) => (B) => (C) => (D) => (E) => R)(as: List[A])(bs: List[B])(cs: List[C])(ds: List[D])(es: List[E]): List[R]
- def maximum[A](list: List[A])(implicit arg0: Ordering[A]): Maybe[A]
- Annotations
- @inline()
- def member[A, A1 >: A](candidate: A1)(xs: List[A]): Boolean
- Annotations
- @inline()
- def minimum[A](list: List[A])(implicit arg0: Ordering[A]): Maybe[A]
- Annotations
- @inline()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def partition[A](f: (A) => Boolean)(xs: List[A]): (List[A], List[A])
- Annotations
- @inline()
- def product[A](list: List[A])(implicit arg0: Numeric[A]): A
- Annotations
- @inline()
- def range(start: Int)(end: Int): List[Int]
- Annotations
- @inline()
- def repeat[A](n: Int)(elem: => A): List[A]
- Annotations
- @inline()
- def reverse[A](xs: List[A]): List[A]
- Annotations
- @inline()
- def singleton[A](item: A): List[A]
- Annotations
- @inline()
- def sum[A](list: List[A])(implicit arg0: Numeric[A]): A
- Annotations
- @inline()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tail[A](xs: List[A]): Maybe[List[A]]
- Annotations
- @inline()
- def take[A](n: Int)(xs: List[A]): List[A]
- Annotations
- @inline()
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unzip[A, B](xs: List[(A, B)]): (List[A], List[B])
- Annotations
- @inline()
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)