scalaz

IList

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. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IList()

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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++(as: IList[A]): IList[A]

    alias for concat

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

  6. def +:(a: A): IList[A]

  7. def /:[B](b: B)(f: (B, A) ⇒ B): B

    alias for foldLeft

  8. def :+(a: A): IList[A]

  9. def ::(a: A): IList[A]

  10. def :::(as: IList[A]): IList[A]

  11. def :\[B](b: B)(f: (A, B) ⇒ B): B

    alias for foldRight

  12. 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.

  13. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def collect[B](pf: PartialFunction[A, B]): IList[B]

  18. def collectFirst[B](pf: PartialFunction[A, B]): Option[B]

  19. def concat(as: IList[A]): IList[A]

  20. def containsSlice(as: IList[A])(implicit ev: Equal[A]): Boolean

  21. def count(f: (A) ⇒ Boolean): Int

  22. def distinct(implicit A: Order[A]): IList[A]

  23. def drop(n: Int): IList[A]

  24. def dropRight(n: Int): IList[A]

  25. def dropRightWhile(f: (A) ⇒ Boolean): IList[A]

  26. def dropWhile(f: (A) ⇒ Boolean): IList[A]

  27. def endsWith(as: IList[A])(implicit ev: Equal[A]): Boolean

  28. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  30. def filter(f: (A) ⇒ Boolean): IList[A]

  31. def filterNot(f: (A) ⇒ Boolean): IList[A]

  32. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. def find(f: (A) ⇒ Boolean): Option[A]

  34. def flatMap[B](f: (A) ⇒ IList[B]): IList[B]

  35. def flatten[B](implicit ev: <~<[A, IList[B]]): IList[B]

  36. def foldLeft[B](b: B)(f: (B, A) ⇒ B): B

  37. def foldRight[B](b: B)(f: (A, B) ⇒ B): B

  38. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  39. def groupBy[K](f: (A) ⇒ K)(implicit ev: Order[K]): ==>>[K, NonEmptyList[A]]

  40. def groupBy1[K](f: (A) ⇒ K)(implicit ev: Order[K]): ==>>[K, OneAnd[IList, A]]

  41. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  42. def headMaybe: Maybe[A]

  43. def headOption: Option[A]

  44. def indexOf(a: A)(implicit ev: Equal[A]): Option[Int]

  45. def indexOfSlice(slice: IList[A])(implicit ev: Equal[A]): Option[Int]

  46. def indexWhere(f: (A) ⇒ Boolean): Option[Int]

  47. def initOption: Option[IList[A]]

  48. def inits: IList[IList[A]]

  49. def interleave(that: IList[A]): IList[A]

  50. def intersperse(a: A): IList[A]

  51. def isEmpty: Boolean

  52. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  53. def lastIndexOf(a: A)(implicit ev: Equal[A]): Option[Int]

  54. def lastIndexOfSlice(as: IList[A])(implicit ev: Equal[A]): Option[Int]

  55. def lastIndexWhere(f: (A) ⇒ Boolean): Option[Int]

  56. final def lastOption: Option[A]

    Annotations
    @tailrec()
  57. def length: Int

  58. def map[B](f: (A) ⇒ B): IList[B]

  59. 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.

  60. 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.

  61. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  62. def nonEmpty: Boolean

  63. final def notify(): Unit

    Definition Classes
    AnyRef
  64. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  65. def padTo(n: Int, a: A): IList[A]

  66. def partition(f: (A) ⇒ Boolean): (IList[A], IList[A])

  67. def patch(from: Int, patch: IList[A], replaced: Int): IList[A]

  68. def prefixLength(f: (A) ⇒ Boolean): Int

  69. def productIterator: Iterator[Any]

    Definition Classes
    Product
  70. def productPrefix: String

    Definition Classes
    Product
  71. def reduceLeftOption(f: (A, A) ⇒ A): Option[A]

  72. def reduceRightOption(f: (A, A) ⇒ A): Option[A]

  73. def reverse: IList[A]

  74. def reverseMap[B](f: (A) ⇒ B): IList[B]

  75. def reverse_:::(as: IList[A]): IList[A]

  76. def scanLeft[B](z: B)(f: (B, A) ⇒ B): IList[B]

  77. def scanRight[B](z: B)(f: (A, B) ⇒ B): IList[B]

  78. def slice(from: Int, until: Int): IList[A]

  79. def sortBy[B](f: (A) ⇒ B)(implicit B: Order[B]): IList[A]

  80. def sorted(implicit ev: Order[A]): IList[A]

  81. def span(f: (A) ⇒ Boolean): (IList[A], IList[A])

  82. def splitAt(n: Int): (IList[A], IList[A])

  83. def startsWith(as: IList[A])(implicit ev: Equal[A]): Boolean

  84. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  85. def tailOption: Option[IList[A]]

  86. def tails: IList[IList[A]]

  87. def take(n: Int): IList[A]

  88. def takeRight(n: Int): IList[A]

  89. def takeRightWhile(f: (A) ⇒ Boolean): IList[A]

  90. def takeWhile(f: (A) ⇒ Boolean): IList[A]

  91. def toEphemeralStream: EphemeralStream[A]

  92. def toList: List[A]

  93. def toMap[K, V](implicit ev0: <~<[A, (K, V)], ev1: Order[K]): ==>>[K, V]

  94. def toNel: Option[NonEmptyList[A]]

  95. def toStream: Stream[A]

  96. def toString(): String

    Definition Classes
    IList → AnyRef → Any
  97. def toVector: Vector[A]

  98. def toZipper: Option[Zipper[A]]

  99. def traverseDisjunction[E, B](f: (A) ⇒ \/[E, B]): \/[E, IList[B]]

    Referentially transparent replacement for traverse, specialised to disjunction.

  100. def uncons[B](n: ⇒ B, c: (A, IList[A]) ⇒ B): B

  101. def unzip[B, C](implicit ev: <~<[A, (B, C)]): (IList[B], IList[C])

  102. def updated(index: Int, a: A): IList[A]

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

  103. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  104. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  105. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  106. def widen[B](implicit ev: <~<[A, B]): IList[B]

  107. def zip[B](b: ⇒ IList[B]): IList[(A, B)]

  108. def zipWithIndex: IList[(A, Int)]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped