Operations for scalar data types.
More...
|
function | defined_or (v, d) |
| Return given value, if defined, or a secondary value, if primary is not defined. More...
|
|
function | index_c (i, l, f=0) |
| Return a circular index position. More...
|
|
Operations for scalar data types.
Validation Summary
No Failures
See complete validation results.
◆ defined_or()
function defined_or |
( |
v |
, |
|
|
d |
|
|
) |
| |
Return given value, if defined, or a secondary value, if primary is not defined.
- Parameters
-
v | <value> A primary value. |
d | <value> A secondary value. |
- Returns
- <value>
v
when it is defined and d
otherwise.
The value d
is returned only when v
is equal to undef.
◆ index_c()
function index_c |
( |
i |
, |
|
|
l |
, |
|
|
f |
= 0 |
|
) |
| |
Return a circular index position.
- Parameters
-
i | <integer> A integer position. |
l | <integer> The range length. |
f | <integer> The starting index position. |
- Returns
- <integer> The index position mapped into a circular list within the range
[f : l+f-1]
.