Variant module

is

procedureextensionsince 0.29.0Source

Whether the live case is T.

Example↗
#import "Extensions/Variant";

id := variant(Variant(s64, string), "abc");
assert(is(id, string) && !is(id, s64));
is :: (v: $V/Variant, $T: Type) -> bool

Parameters

v: $V/Variant
$T: Type

Returns

bool

See also