Returns the specified item from the list. The index is zero-based. Fails if the index is out of bounds.
nth(list as list, index as number) -> item |
Name |
Type |
Description |
|---|---|---|
list |
list |
Specifies the input list. |
index |
number |
Specifies the zero-based index of the item to return. |
The following expression returns b:
nth(list('a', 'b', 'c'), 1) |