Import Upstream version 20180207
[hcoop/debian/mlton.git] / doc / guide / src / Variant.adoc
CommitLineData
7f918cf1
CE
1Variant
2=======
3
4A _variant_ is an arm of a datatype declaration. For example, the
5datatype
6
7[source,sml]
8----
9datatype t = A | B of int | C of real
10----
11
12has three variants: `A`, `B`, and `C`.