scalaz

CorecursiveList

object CorecursiveList extends CorecursiveListInstances

Source
CorecursiveList.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CorecursiveList
  2. CorecursiveListInstances
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. def apply[S, A](init: S)(step: (S) ⇒ Maybe[(S, A)]): CorecursiveList[A]

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def cons[A](a: A, fa: CorecursiveList[A]): CorecursiveList[A]

    A frightfully inefficient way to add elements to the beginning of a corecursive list.

    A frightfully inefficient way to add elements to the beginning of a corecursive list. It is correct, and reasonable enough for one-or-two-time use on a particular list, but be warned that iterative cons is necessarily a very inefficient way to build up a CorecursiveList.

    You can see why by taking a look at its choice of state. cons adds a Maybe to the state of the tail list, so if you cons four elements onto someCList, its state will be Maybe[Maybe[Maybe[Maybe[someCList.S]]]], and so on. This is utterly unsustainable for iterative consing.

    Instead, try apply, or another more wholemeal-style combinator. You might also cons up a different structure, then transform that to a CorecursiveList wholesale and append or plus it on; that's reasonably efficient, too.

  10. implicit val covariantInstance: MonadPlus[CorecursiveList] with Foldable[CorecursiveList] with IsEmpty[CorecursiveList] with Align[CorecursiveList] with Zip[CorecursiveList]

  11. val ephemeralStreamIso: Isomorphism.<~>[EphemeralStream, CorecursiveList]

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

    Definition Classes
    AnyRef
  13. implicit def equalInstance[A](implicit arg0: Equal[A]): Equal[CorecursiveList[A]]

    Definition Classes
    CorecursiveListInstances
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. val fromList: ~>[LinearSeq, CorecursiveList]

    Any LinearSeq converts to a CorecursiveList efficiently.

    Any LinearSeq converts to a CorecursiveList efficiently. No natural transformation from CorecursiveList to List exists, because representation of infinite lists is not guaranteed. Use streamIso for such cases instead.

  17. def fromStream[A](s: Stream[A]): CorecursiveList[A]

  18. val fromVector: ~>[IndexedSeq, CorecursiveList]

    Any IndexedSeq converts to a CorecursiveList efficiently.

    Any IndexedSeq converts to a CorecursiveList efficiently. No natural transformation from CorecursiveList to Vector exists, because representation of infinite lists is not guaranteed. Use streamIso for such cases instead.

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

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. implicit def monoidInstance[A]: Monoid[CorecursiveList[A]]

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

    Definition Classes
    AnyRef
  24. final def notify(): Unit

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

    Definition Classes
    AnyRef
  26. implicit def orderInstance[A](implicit arg0: Order[A]): Order[CorecursiveList[A]]

  27. val streamIso: Isomorphism.<~>[Stream, CorecursiveList]

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

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CorecursiveListInstances

Inherited from AnyRef

Inherited from Any

Ungrouped