Packages

sealed abstract class IList[A] extends Product with Serializable

Safe, invariant alternative to stdlib List. Most methods on List have a sensible equivalent here, either on the IList interface itself or via typeclass instances (which are the same as those defined for stdlib List). All methods are total and stack-safe.

Source
IList.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IList
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean
    Definition Classes
    Equals
  2. abstract def productArity: Int
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any
    Definition Classes
    Product

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++(as: IList[A]): IList[A]

    alias for concat

  4. def ++:(as: IList[A]): IList[A]

    alias for prepend

  5. def +:(a: A): IList[A]
  6. def /:[B](b: B)(f: (B, A) => B): B

    alias for foldLeft

  7. def :+(a: A): IList[A]
  8. def ::(a: A): IList[A]
  9. def :::(as: IList[A]): IList[A]
  10. def :\[B](b: B)(f: (A, B) => B): B

    alias for foldRight

  11. final def <^>[B](f: (OneAnd[IList, A]) => B)(implicit B: Monoid[B]): B

    Returns f applied to contents if non-empty, otherwise the zero of B.

  12. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  15. def collect[B](pf: PartialFunction[A, B]): IList[B]
  16. def collectFirst[B](pf: PartialFunction[A, B]): Maybe[B]
  17. def concat(as: IList[A]): IList[A]
  18. def containsSlice(as: IList[A])(implicit ev: Equal[A]): Boolean
  19. def count(f: (A) => Boolean): Int
  20. def distinct(implicit A: Order[A]): IList[A]
  21. def drop(n: Int): IList[A]
  22. def dropRight(n: Int): IList[A]
  23. def dropRightWhile(f: (A) => Boolean): IList[A]
  24. def dropWhile(f: (A) => Boolean): IList[A]
  25. def endsWith(as: IList[A])(implicit ev: Equal[A]): Boolean
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  28. def filter(f: (A) => Boolean): IList[A]
  29. def filterM[F[_]](f: (A) => F[Boolean])(implicit F: Applicative[F]): F[IList[A]]
  30. def filterNot(f: (A) => Boolean): IList[A]
  31. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  32. def find(f: (A) => Boolean): Maybe[A]
  33. def flatMap[B](f: (A) => IList[B]): IList[B]
  34. def flatten[B](implicit ev: <~<[A, IList[B]]): IList[B]
  35. def foldLeft[B](b: B)(f: (B, A) => B): B
  36. def foldRight[B](b: B)(f: (A, B) => B): B
  37. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. def groupBy[K](f: (A) => K)(implicit ev: Order[K]): ==>>[K, NonEmptyList[A]]
  39. def groupBy1[K](f: (A) => K)(implicit ev: Order[K]): ==>>[K, OneAnd[IList, A]]
  40. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  41. def headMaybe: Maybe[A]
  42. def headOption: Option[A]
  43. def indexOf(a: A)(implicit ev: Equal[A]): Option[Int]
  44. def indexOfSlice(slice: IList[A])(implicit ev: Equal[A]): Option[Int]
  45. def indexWhere(f: (A) => Boolean): Option[Int]
  46. def initMaybe: Maybe[IList[A]]
  47. def inits: IList[IList[A]]
  48. def interleave(that: IList[A]): IList[A]
  49. def intersperse(a: A): IList[A]
  50. def isEmpty: Boolean
  51. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  52. def lastIndexOf(a: A)(implicit ev: Equal[A]): Option[Int]
  53. def lastIndexOfSlice(as: IList[A])(implicit ev: Equal[A]): Option[Int]
  54. def lastIndexWhere(f: (A) => Boolean): Option[Int]
  55. final def lastOption: Option[A]
    Annotations
    @tailrec()
  56. def length: Int
  57. def map[B](f: (A) => B): IList[B]
  58. def mapAccumLeft[B, C](c: C)(f: (C, A) => (C, B)): (C, IList[B])

    All of the Bs, in order, and the final C acquired by a stateful left fold over as.

  59. final def mapAccumRight[B, C](c: C)(f: (C, A) => (C, B)): (C, IList[B])

    All of the Bs, in order as-wise, and the final C acquired by a stateful right fold over as.

  60. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  61. def nonEmpty: Boolean
  62. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  63. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  64. def padTo(n: Int, a: A): IList[A]
  65. def partition(f: (A) => Boolean): (IList[A], IList[A])
  66. def patch(from: Int, patch: IList[A], replaced: Int): IList[A]
  67. def prefixLength(f: (A) => Boolean): Int
  68. def prepend(as: IList[A]): IList[A]
  69. def productElementName(n: Int): String
    Definition Classes
    Product
  70. def productElementNames: Iterator[String]
    Definition Classes
    Product
  71. def productIterator: Iterator[Any]
    Definition Classes
    Product
  72. def productPrefix: String
    Definition Classes
    Product
  73. def reduceLeftOption(f: (A, A) => A): Option[A]
  74. def reduceRightOption(f: (A, A) => A): Option[A]
  75. def reverse: IList[A]
  76. def reverseMap[B](f: (A) => B): IList[B]
  77. def reverse_:::(as: IList[A]): IList[A]
  78. def scanLeft[B](z: B)(f: (B, A) => B): IList[B]
  79. def scanRight[B](z: B)(f: (A, B) => B): IList[B]
  80. def slice(from: Int, until: Int): IList[A]
  81. def sortBy[B](f: (A) => B)(implicit B: Order[B]): IList[A]
  82. def sorted(implicit ev: Order[A]): IList[A]
  83. def span(f: (A) => Boolean): (IList[A], IList[A])
  84. def splitAt(n: Int): (IList[A], IList[A])
  85. def startsWith(as: IList[A])(implicit ev: Equal[A]): Boolean
  86. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  87. def tailMaybe: Maybe[IList[A]]
  88. def tails: IList[IList[A]]
  89. def take(n: Int): IList[A]
  90. def takeRight(n: Int): IList[A]
  91. def takeRightWhile(f: (A) => Boolean): IList[A]
  92. def takeWhile(f: (A) => Boolean): IList[A]
  93. def toEphemeralStream: EphemeralStream[A]
  94. def toList: List[A]
  95. def toMap[K, V](implicit ev0: <~<[A, (K, V)], ev1: Order[K]): ==>>[K, V]
  96. def toNel: Maybe[NonEmptyList[A]]
  97. def toStream: Stream[A]
  98. def toString(): String
    Definition Classes
    IList → AnyRef → Any
  99. def toVector: Vector[A]
  100. def toZipper: Maybe[Zipper[A]]
  101. def traverseDisjunction[E, B](f: (A) => \/[E, B]): \/[E, IList[B]]

    Referentially transparent replacement for traverse, specialised to disjunction.

  102. def uncons[B](n: => B, c: (A, IList[A]) => B): B
  103. def unzip[B, C](implicit ev: <~<[A, (B, C)]): (IList[B], IList[C])
  104. def updated(index: Int, a: A): IList[A]

    Unlike stdlib's version, this is total and simply ignores indices that are out of range

  105. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  106. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  107. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  108. def widen[B](implicit ev: <~<[A, B]): IList[B]
  109. def zip[B](b: => IList[B]): IList[(A, B)]
  110. def zipWithIndex: IList[(A, Int)]

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped