in reply to An efficient way to remove an element from an array

See splice. For understanding splice I really recommend reimplementing the pop, push, shift and unshift functions using only splice.

Replies are listed 'Best First'.
Re^2: An efficient way to remove an element from an array
by Anonymous Monk on Aug 06, 2012 at 10:32 UTC
    The documentation kinda gives away the implementation :) literally :)

      Sure, but working through the why and how is still educative :).

Re^2: An efficient way to remove an element from an array
by sophate (Beadle) on Aug 06, 2012 at 10:34 UTC

    Thanks. It's exactly what I'm looking for :)