Debian Codegraph @

doc/guide/src/Variant.adoc

raw
1 = Variant
2
3 A _variant_ is an arm of a datatype declaration. For example, the
4 datatype
5
6 [source,sml]
7 ----
8 datatype t = A | B of int | C of real
9 ----
10
11 has three variants: `A`, `B`, and `C`.