Created
July 2, 2018 01:38
-
-
Save oisdk/4684a3faa84146765e64d60ef01d97e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zipo :: Functor f => (f (Fix f -> a) -> f (Fix f) -> a) -> Fix f -> Fix f -> a | |
zipo alg = c where c = (\x -> alg x . unfix) . fmap c . unfix | |
newtype Fix f = Fix (f (Fix f)) | |
unfix :: Fix f -> f (Fix f) | |
unfix (Fix f) = f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment