Standard Library: Verification functions
is-some
[%is-some: value]
→ bool
Returns @true
if value
is any non-nothing
type.
Paraneters
value
← any
The value to check.
is-between
[%is-between: value; a; b]
→ bool
Returns @true
if value
is bewteen a
and b
(both inclusive).
Parameters
value
← any
The value to check.
a
← any
The first bound.
b
← any
The second bound.
is-bool
[%is-bool: value]
→ bool
Returns @true
if value
is of type bool
.
Parameters
value
← any
The value to check.
is-nothing
[%is-nothing: value]
→ bool
Returns @true
if value
is of type nothing
.
Parameters
value
← any
The value to check.
is-even
[%is-even: number]
→ bool
Returns @true
if number
is an even number.
Parameters
number
← int | float
The number to check.
is-float
[%is-float: value]
→ bool
Returns @true
if value
is of type float
.
Parameters
value
← any
The value to check.
is-int
[%is-int: value]
→ bool
Returns @true
if value
is of type int
.
Parameters
value
← any
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
value
← any
The value to check.
is-number
[%is-number: value]
→ bool
Returns @true
if value
is of type int
or float
.
Parameters
value
← any
The value to check.
is-odd
[%is-odd: number]
→ bool
Returns @true
if number
is an odd number.
Parameters
value
← any
The value to check.
is-string
[%is-string: value]
→ bool
Returns @true
if value
is of type string
.
Parameters
value
← any
The value to check.