Open ekmett opened 8 years ago
And its monadic variant too.
How about Functor f => (CofreeF f a b -> b) -> Cofree f a -> b
instead? https://github.com/ekmett/recursion-schemes/pull/26 adds that to recursion-schemes as cata
in a new instance for Recursive
.
E.g.