Name

sublist — Extracts a sublist

Synopsis

list sublist ( list LIST ,
  integer OFFSET );
 

Parameters

list LIST

integer OFFSET

Return

list

Description

Extracts a sublist of the list LIST starting at OFFSET. The OFFSET starts with 0.

Usage

  sublist ([ "a", "b", "c"], 0) -> [ "a", "b", "c" ]
  sublist ([ "a", "b", "c"], 2) -> [ "c" ]