element
(
list
,
position
)
list item
Type:
For any types
t
(
[
t
]
,
Number
)
->
t
Gets the list element at the given position (first position is 1).
Examples
Click an example to insert it
element
([
"x", "y", "z"
]
, 1
)
→
"x"
element
([
2, 4, 6, 8
]
, 4
)
→
8
element
([]
, 1
)
→
error
element
([
true, false
]
, 0
)
→
error