Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 lurking in the Monastery: (8)
As of 2015-07-01 21:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (22 votes), past polls