Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
instance Functor ExprR where
fmap _ (Cst c) = Cst c
fmap _ (Var v) = Var v
fmap f (Op opType xs) = Op opType (map f xs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment