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
Serializable, Serializable, Product, Equals, AnyRef, Any
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: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

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

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

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

  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

  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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def collect[B](pf: PartialFunction[A, B]): IList[B]

  16. def collectFirst[B](pf: PartialFunction[A, B]): Option[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 drop(n: Int): IList[A]

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

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

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

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

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

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

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

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

  29. def finalize(): Unit

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

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

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

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

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

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

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

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

  38. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  39. def headOption: Option[A]

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

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

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

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

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

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

  46. def isEmpty: Boolean

  47. final def isInstanceOf[T0]: Boolean

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

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

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

  51. final def lastOption: Option[A]

    Annotations
    @tailrec()
  52. def length: Int

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

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

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

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

    Definition Classes
    AnyRef
  57. def nonEmpty: Boolean

  58. final def notify(): Unit

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

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

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

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

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

  64. def productIterator: Iterator[Any]

    Definition Classes
    Product
  65. def productPrefix: String

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

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

  68. def reverse: IList[A]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  86. def toEphemeralStream: EphemeralStream[A]

  87. def toList: List[A]

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

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

  90. def toStream: Stream[A]

  91. def toString(): String

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

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

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

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

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

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

  97. final def wait(): Unit

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

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

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped