Cut Indexed Table in Two
#Firmware/v300
t1, t2 = util.cuti(t, idx)
Cut an indexed table in two.
Parameter
Type
Description
t
table
Table to cut
idx
integer
Index of first entry to be in
t2
Returns
Type
Description
t1
table
First half
t2
table
Second half