Module

Data.Functor.Mu

Package
purescript-fixed-points
Repository
slamdata/purescript-fixed-points

#Mu Source

newtype Mu f

Mu f is the least fixed point of a functor f, when it exists.

Constructors

Instances

#roll Source

roll :: forall f. f (Mu f) -> Mu f

#unroll Source

unroll :: forall f. Mu f -> f (Mu f)

#transMu Source

transMu :: forall g f. Functor g => f ~> g -> Mu f -> Mu g

Rewrites a tree along a natural transformation.