Standard Library: Verification functions

is-some


[%is-some: value] 

bool

Returns @true if value is any non-nothing type.

Paraneters

valueany
The value to check.

is-between


[%is-between: value; a; b]

bool

Returns @true if value is bewteen a and b (both inclusive).

Parameters

valueany
The value to check.

aany
The first bound.

bany
The second bound.

is-bool


[%is-bool: value]

bool

Returns @true if value is of type bool.

Parameters

valueany
The value to check.

is-nothing


[%is-nothing: value]

bool

Returns @true if value is of type nothing.

Parameters

valueany
The value to check.

is-even


[%is-even: number]

bool

Returns @true if number is an even number.

Parameters

numberint | float
The number to check.

is-float


[%is-float: value]

bool

Returns @true if value is of type float.

Parameters

valueany
The value to check.

is-int


[%is-int: value]

bool

Returns @true if value is of type int.

Parameters

valueany
The value to check.

is-nan


[%is-nan: value]

bool

Returns @true if value is of type float and equal to NaN (Not a Number).

Parameters

valueany
The value to check.

is-number


[%is-number: value]

bool

Returns @true if value is of type int or float.

Parameters

valueany
The value to check.

is-odd


[%is-odd: number]

bool

Returns @true if number is an odd number.

Parameters

valueany
The value to check.

is-string


[%is-string: value]

bool

Returns @true if value is of type string.

Parameters

valueany
The value to check.