in reply to splice n dice

Splice is:
splice ARRAY, OFFSET, LENGTH
You only want to splice 1 element out, not $y elements.