Last active
September 7, 2019 20:16
-
-
Save MarcelineVQ/6b30190409b02d504b99a0ea0f137322 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data Tree : Type -> Type where | |
| Empty : Tree a | |
| MkTree : a -> List (Tree a) -> Tree a | |
| total | |
| map1 : (a -> b) -> Tree a -> Tree b | |
| map1 f Empty = Empty | |
| map1 f (MkTree x xs) = MkTree (f x) (map (map1 f) xs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment