Created
October 16, 2018 16:14
-
-
Save Synthetica9/2fd591cd4560eed189206e19c8ae3259 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| superCata :: (Functor f, Foldable f) => (r -> r -> r) -> r -> (f r -> Maybe r) -> Fix f -> r | |
| superCata (+) ϵ f = cata algebra where | |
| algebra x = fromMaybe (foldr (+) ϵ x) $ f x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment