Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: An efficient way to remove an element from an array

by Corion (Pope)
on Aug 06, 2012 at 10:28 UTC ( #985650=note: print w/replies, xml ) Need Help??


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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985650]
help
Chatterbox?
Ratazong takes a cookie from the platter on the sideboard.
Ratazong adds shortbread cookies to the platter on the sideboard.
[Lady_Aleena]: Hi Ratazong.
[Ratazong]: Hi Lady Aleena
Ratazong just learned about free cookies ;-)
shmem rolls a barrel of beer into the refectorium at the request of jedikaiti

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-04-26 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.