object List

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. List
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type List[+A] = scala.collection.immutable.List[A]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def all[A](predicate: (A) => Boolean)(xs: List[A]): Boolean
    Annotations
    @inline()
  5. def any[A](predicate: (A) => Boolean)(xs: List[A]): Boolean
    Annotations
    @inline()
  6. def append[A](xs: List[A])(ys: List[A]): List[A]
    Annotations
    @inline()
  7. def apply[A](items: A*): List[A]
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  10. def concat[A](lists: List[List[A]]): List[A]
    Annotations
    @inline()
  11. def concatMap[A, B](f: (A) => List[B])(lists: List[A]): List[B]
    Annotations
    @inline()
  12. def cons[A](head: A)(tail: List[A]): List[A]
    Annotations
    @inline()
  13. def drop[A](n: Int)(xs: List[A]): List[A]
    Annotations
    @inline()
  14. def empty[A]: List[A]
    Annotations
    @inline()
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. def filter[A](f: (A) => Boolean)(xs: List[A]): List[A]
    Annotations
    @inline()
  18. def filterMap[A, B](f: (A) => Maybe[B])(xs: List[A]): List[B]
  19. def foldl[A, B](f: (A) => (B) => B)(initial: B)(xs: List[A]): B
  20. def foldr[A, B](f: (A) => (B) => B)(initial: B)(xs: List[A]): B
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  23. def head[A](xs: List[A]): Maybe[A]
    Annotations
    @inline()
  24. def indexedMap[X, R](fn: (Int) => (X) => R)(xs: List[X]): List[R]
  25. def innerJoin[A, B](listB: List[B])(f: (A) => (B) => Bool)(listA: List[A]): List[(A, B)]
  26. def intersperse[A](elem: A)(xs: List[A]): List[A]
  27. def isEmpty[A](list: List[A]): Boolean
    Annotations
    @inline()
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def leftJoin[A, B](listB: List[B])(f: (A) => (B) => Bool)(listA: List[A]): List[(A, Maybe[B])]
  30. def length[A](xs: List[A]): Int
    Annotations
    @inline()
  31. def map[A, B](mapping: (A) => B)(list: List[A]): List[B]
    Annotations
    @inline()
  32. 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.

  33. def map3[X, Y, Z, R](mapping: (X) => (Y) => (Z) => R)(xs: List[X])(ys: List[Y])(zs: List[Z]): List[R]
  34. 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]
  35. 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]
  36. def maximum[A](list: List[A])(implicit arg0: Ordering[A]): Maybe[A]
    Annotations
    @inline()
  37. def member[A, A1 >: A](candidate: A1)(xs: List[A]): Boolean
    Annotations
    @inline()
  38. def minimum[A](list: List[A])(implicit arg0: Ordering[A]): Maybe[A]
    Annotations
    @inline()
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  42. def partition[A](f: (A) => Boolean)(xs: List[A]): (List[A], List[A])
    Annotations
    @inline()
  43. def product[A](list: List[A])(implicit arg0: Numeric[A]): A
    Annotations
    @inline()
  44. def range(start: Int)(end: Int): List[Int]
    Annotations
    @inline()
  45. def repeat[A](n: Int)(elem: => A): List[A]
    Annotations
    @inline()
  46. def reverse[A](xs: List[A]): List[A]
    Annotations
    @inline()
  47. def singleton[A](item: A): List[A]
    Annotations
    @inline()
  48. def sum[A](list: List[A])(implicit arg0: Numeric[A]): A
    Annotations
    @inline()
  49. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  50. def tail[A](xs: List[A]): Maybe[List[A]]
    Annotations
    @inline()
  51. def take[A](n: Int)(xs: List[A]): List[A]
    Annotations
    @inline()
  52. def toString(): String
    Definition Classes
    AnyRef → Any
  53. def unzip[A, B](xs: List[(A, B)]): (List[A], List[B])
    Annotations
    @inline()
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped