some
andnone
are the 2 operators to build an option value.issome
and isnone
are the 2 operators to test whether an option value is none or is some.opt_get
is the operator to extract the value from a some
option value. It fails if the value is none
.*
and the tuple value with (,)
syntax.[ ]
operator is used to project the tuple to one specific dimension:=
and <>
comparison operators. You can also check for any of the possible values with match ... with end
instruction:color
value the following way: