According to the PICO-8 0.2.2c manual, "To remove an item at a particular index, use deli"
However, this does not seem to work with string or float indices. (Only tested on macOS Mojave)
The desired result can be achieved using
t[i] = nil |
which seems to be the accepted way in lua.
Possible resolutions:
- Update deli(t,i) to work with all index types
- Update PICO-8 manual to specify deli only works with integer indices, and include t[i]=nil workaround.
thank you :)
P#89289 2021-03-21 03:16