Hylo

dev.constructive.eo.schemes.zoo.Hylo
See theHylo companion class
object Hylo

Attributes

Companion
class
Source
Hylo.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Hylo.type

Members list

Value members

Concrete methods

def apply[F[_], Seed, A](coalg: Seed => F[Seed], alg: F[A] => A)(using F: Traverse[F]): Hylo[Seed, A]

The fused refold Seed => A, building no intermediate S (needs only Traverse[F]). coalg unfolds a seed into one typed layer; alg folds the layer's results (node-blind, like Cata). Definitionally ana(coalg).cross(cata(alg)). Stack-safe.

The fused refold Seed => A, building no intermediate S (needs only Traverse[F]). coalg unfolds a seed into one typed layer; alg folds the layer's results (node-blind, like Cata). Definitionally ana(coalg).cross(cata(alg)). Stack-safe.

Attributes

Source
Hylo.scala