Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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.


Comment on Re: An efficient way to remove an element from an array
Select or Download Code
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-07-28 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (210 votes), past polls