Object/Class

scalaz

CorecursiveList

Related Docs: class CorecursiveList | package scalaz

Permalink

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

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply[S, A](init: S)(step: (S) ⇒ Maybe[(S, A)]): CorecursiveList[A]

    Permalink
  5. final def asInstanceOf[T0]: T0

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

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

    Permalink

    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.

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

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

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

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

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

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

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

    Permalink

    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.

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

    Permalink
  16. val fromVector: ~>[IndexedSeq, CorecursiveList]

    Permalink

    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.

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

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

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

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

    Permalink
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CorecursiveListInstances

Inherited from AnyRef

Inherited from Any

Ungrouped