Functions
is_list(x) → {boolean}
PRIMITIVE
returns True if x is a list and False otherwise.
Parameters:
| Name | Type | Description |
|---|---|---|
|
value | given value |
Returns:
whether x is a list
- Type
- boolean
list_length(x) → {int}
PRIMITIVE
the current length of list x, which is 1 plus the
highest index that has been used so far in a list assignment on
x. Here literal list expressions are counted too: The
list [10, 20, 30] has a length of 3.
Parameters:
| Name | Type | Description |
|---|---|---|
|
list | given value |
Returns:
current length of list
- Type
- int