1. BASIC DATA TYPES: int, bool
Rich type system and polymorphism in ocaml. Types are infered not declared.
Basic types: int, bool, float, string, char, ...
int
value: $-2^{62}$ ~ $2^{62}-1$ on 64-bit machines.
ops: +, -, *, /, mod (reminder: / is integer division)
# 3+2*4-1;;
- : int = 10
# 5/2;;
- : int …