ligo/gitlab-pages/docs/language-basics/src/boolean-if-else/cond.mligo

5 lines
124 B
Plaintext
Raw Normal View History

2020-02-05 19:28:40 +04:00
type magnitude = Small | Large // See variant types
let compare (n : nat) : magnitude =
if n < 10n then Small else Large