Getting started
arithmatic
function
tuple
list
let expression
options
boolean operations
records
type binding
The above code:
- adds a new type
mytype
to the environment.
- adds constructoers to the environment: TwoInts, Str, Pizza
- a constructor is a function that makes values of the new type
TwoInts : int * int -> mytype
Str : string -> mytype
Pizza : mytype
polymorphic data types
function pattern matching
exceptions