February 2019
Beginner to intermediate
180 pages
4h 4m
English
We can also create our types:
type person = (string, int);/* or */type name = string;type age = int;type person = (name, age);
Here's how we create a person of the person type:
let person = ("Zoe", 3);
We can also annotate any expression with its type:
let name = ("Zoe" : string);let person = ((name, 3) : person);
Read now
Unlock full access