Skip to content

llDeleteSubList

function ll.DeleteSubList(Source: {any}, Start: number, End: number): {any}

Removes the slice from start to end and returns the remainder of the list.

Remove a slice from the list and return the remainder, start and end are inclusive.

Using negative numbers for start and/or end causes the index to count backwards from the length of the list, so 0, -1 would delete the entire list.

If Start is larger than End the list deleted is the exclusion of the entries; so 6, 4 would delete the entire list except for the 5th list entry.

Parameters
Source ({any})
Start (number)
End (number)

Add example usage here showing SLua/Luau syntax with ll.DeleteSubList().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.