sublist


sublist(xs, @optional start = 0, end = length(xs))
      

Return a new list with elements from the list xs starting at index start (inclusive) and ending at index end (exclusive).

Examples:


sublist([1, 2, 3, 4, 5], 2, 4)
// [3, 4]
      

Also see:

subarray
substring


Core Module Index | Contents