ligo/gitlab-pages/docs/language-basics/src/boolean-if-else/cond.religo
2020-02-05 16:28:40 +01:00

5 lines
138 B
Plaintext

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