Variant module

variant

procedure · 1 overloadsince 0.29.0Source

Makes a Variant holding value; its type picks the case. variant(Shape, Circle.{ 1 }).

variant :: ($V: Type, value: $T) -> V

Makes a Variant holding value; its type picks the case. variant(Shape, Circle.{ 1 }).

Parameters

$V: Type
value: $T

Returns

V

See also