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).
xs
start
end
sublist([1, 2, 3, 4, 5], 2, 4) // [3, 4]
Core Module Index | Contents