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
instance Functor ExprR where | |
fmap _ (Cst c) = Cst c | |
fmap _ (Var v) = Var v | |
fmap f (Op opType xs) = Op opType (map f xs) |