list.nth()
The list.nth()
function returns the element of $list
at index $n
and/or with elements of given indexes $nts...
.
Function modify original by adding $nts...
arbitrary parameter at the end.
Parameters
$list
$list
A list from which the element of index $n
and/or multiple indexes $nts
are retrieved.
$n
$n
The required index of $list
.
$nts...
$nts...
Optional multiple indexes of $list
.
Return
The return value is a retrieved element or list of retrieved elements.
Examples
Last updated
Was this helpful?