- All Implemented Interfaces:
- WarpScriptStackFunction
public class SUBLIST
extends NamedWarpScriptFunction
implements WarpScriptStackFunction
Create a new list with the elements whose indices are in the parameter list.
If the parameter list contains two indices [a,b] then SUBLIST
returns the list of elements from the lesser index to the bigger index (included).
If the parameter list contains more than two indices, the result of SUBLIST
contains all the elements at the specified indices, with possible duplicates.
If, instead of the parameter list, there are number, they are considered to define
a range. From top to bottom: step (optional), end(optional), start