Removes a single item from an array and returns it without creating gc, like the native splice does. Based on code by Mike Reinstein.
The array to splice from.
The index of the item which should be spliced.
Removes a single item from an array and returns it without creating gc, like the native splice does. Based on code by Mike Reinstein.