Skip to content

Instantly share code, notes, and snippets.

@nomaddo
Created November 5, 2014 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nomaddo/f1b98e809cf2674103bf to your computer and use it in GitHub Desktop.
Save nomaddo/f1b98e809cf2674103bf to your computer and use it in GitHub Desktop.
::2.ml
# type 'a t = :: of 'a t * 'a t | Leaf of 'a;;
type 'a t = :: of 'a t * 'a t | Leaf of 'a
# Leaf 1 :: Leaf 2 :: Leaf 3;;
- : int t = :: (Leaf 1, :: (Leaf 2, Leaf 3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment