chunk

chunk ( list/map list , int/object begin , int/object end ) : int

Returns the list tuncrated

Example


list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
console(chunk(list, 3, 7)) // -> [3, 4, 5, 6, 7]

Parameters

list

list of object to tuncrate

begin

Begining object or index

end

End object or index