Class/Object

scalaz

IList

Related Docs: object IList | package scalaz

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    Equals
  2. abstract def productArity: Int

    Permalink
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any

    Permalink
    Definition Classes
    Product

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

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

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

    Permalink

    alias for concat

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

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

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

    Permalink

    alias for foldLeft

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

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

    Permalink
  9. def :::(as: IList[A]): IList[A]

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

    Permalink

    alias for foldRight

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

    Permalink

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

  12. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def clone(): AnyRef

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

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

    Permalink
  17. def concat(as: IList[A]): IList[A]

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

    Permalink
  19. def count(f: (A) ⇒ Boolean): Int

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

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

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

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

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

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

    Permalink
  26. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
  30. def finalize(): Unit

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

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

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

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

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

    Permalink
  36. final def getClass(): Class[_]

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

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

    Permalink
  39. def hashCode(): Int

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

    Permalink
  41. def headOption: Option[A]

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

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

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

    Permalink
  45. def initOption: Option[IList[A]]

    Permalink
  46. def inits: IList[IList[A]]

    Permalink
  47. def interleave(that: IList[A]): IList[A]

    Permalink
  48. def intersperse(a: A): IList[A]

    Permalink
  49. def isEmpty: Boolean

    Permalink
  50. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
  54. final def lastOption: Option[A]

    Permalink
    Annotations
    @tailrec()
  55. def length: Int

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

    Permalink
  57. def mapAccumLeft[B, C](c: C)(f: (C, A) ⇒ (C, B)): (C, IList[B])

    Permalink

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

  58. final def mapAccumRight[B, C](c: C)(f: (C, A) ⇒ (C, B)): (C, IList[B])

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  60. def nonEmpty: Boolean

    Permalink
  61. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  62. final def notifyAll(): Unit

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

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

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

    Permalink
  66. def prefixLength(f: (A) ⇒ Boolean): Int

    Permalink
  67. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  68. def productPrefix: String

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

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

    Permalink
  71. def reverse: IList[A]

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

    Permalink
  73. def reverse_:::(as: IList[A]): IList[A]

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

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

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

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

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

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

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

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

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

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

    Permalink
  84. def tails: IList[IList[A]]

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

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

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

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

    Permalink
  89. def toEphemeralStream: EphemeralStream[A]

    Permalink
  90. def toList: List[A]

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

    Permalink
  92. def toNel: Option[NonEmptyList[A]]

    Permalink
  93. def toStream: Stream[A]

    Permalink
  94. def toString(): String

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

    Permalink
  96. def toZipper: Option[Zipper[A]]

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

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

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

    Permalink

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

  100. final def wait(): Unit

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

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

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

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

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

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped