Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 exploiting the Monastery: (4)
As of 2014-07-13 05:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (246 votes), past polls