list.to()
The list.to()
function returns $list
with elements from the first index to the given $to
index.
Parameters
$list
$list
The list to get the elements from 1
to given $to
.
$to
$to
Index of the last element to retrieve from $list
.
Return
The return value is the list of the elements from 1
to given $to
index.
Examples
Last updated