Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active December 23, 2016 21:22
Show Gist options
  • Save deque-blog/95c89f031e953232492f2a83d230f430 to your computer and use it in GitHub Desktop.
Save deque-blog/95c89f031e953232492f2a83d230f430 to your computer and use it in GitHub Desktop.
data Tree a
= EmptyTree
| Tree { root :: Node a }
data Node a
= Node {
value :: a,
children :: [Node a] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment