Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. instance Functor ExprR where
  2. fmap _ (Cst c) = Cst c
  3. fmap _ (Var v) = Var v
  4. fmap f (Op opType xs) = Op opType (map f xs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement