5 lines
138 B
Plaintext
5 lines
138 B
Plaintext
type magnitude = | Small | Large; // See variant types
|
|
|
|
let compare = (n : nat) : magnitude =>
|
|
if (n < 10n) { Small; } else { Large; };
|