View TypeOr[ ]
%types | A list of types (or views). |
@x:view | @x:func sys:Is(v~string)~boolean |
View Function sys:Is
@x:func sys:Is(v~string)~boolean | ||
|
Semantics
The result is true if v has any of the types in the list of types.Examples
@x:const BooleanInt := TypeOr[boolean,int,void];
@x:var bi~BooleanInt := null;
bi := 3;
bi := false