Zygohistomorphic prepromorphisms: Difference between revisions

From HaskellWiki
No edit summary
 
No edit summary
Line 1: Line 1:
Used when you really need both semi-mutual recursion and history and to repeatedly apply a natural transformation as you get deeper into the functor.
Used when you really need both semi-mutual recursion and history and to repeatedly apply a natural transformation as you get deeper into the functor.
<pre>
zygohistomorphic_prepromorphism f = g_prepro (distZygoT (liftAlgebra f) (distHisto id)) -- unless you want a generalized zygomorphism.
</pre>

Revision as of 01:36, 9 June 2008

Used when you really need both semi-mutual recursion and history and to repeatedly apply a natural transformation as you get deeper into the functor.

zygohistomorphic_prepromorphism f = g_prepro (distZygoT (liftAlgebra f) (distHisto id)) -- unless you want a generalized zygomorphism.