Variant module

unwrap

procedure · 1 overloadsince 0.29.0Source

The T payload; asserts that T is the live case.

unwrap :: (v: $V/Variant, $T: Type) -> T

The T payload; asserts that T is the live case.

Parameters

v: $V/Variant
$T: Type

Returns

T

See also