Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created January 20, 2017 20:12
Show Gist options
  • Save deque-blog/574b61e4bacd2b6577522878d25aec7a to your computer and use it in GitHub Desktop.
Save deque-blog/574b61e4bacd2b6577522878d25aec7a to your computer and use it in GitHub Desktop.
cataExpr :: (ExprR a -> a) -> Expr -> a
cataExpr algebra =
algebra
. fmap (cataExpr algebra)
. unFix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment