Name
sublist — Extracts a sublist
Synopsis
list
sublist
( |
list
LIST
, |
| |
integer
OFFSET
, |
| |
integer
LENGTH
); |
Parameters
-
list
LIST
-
integer
OFFSET
-
integer
LENGTH
Description
Extracts a sublist of the list LIST starting at OFFSET with length LENGTH. The OFFSET starts with 0.
Usage
sublist ([ "a", "b", "c"], 0, 2) -> [ "a", "b" ]
sublist ([ "a", "b", "c"], 1, 1) -> [ "b" ]