Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Linked lists as arrays: inserting values

by radiantmatrix (Parson)
on Sep 25, 2006 at 17:13 UTC ( #574796=note: print w/ replies, xml ) Need Help??


in reply to Re: Linked lists as arrays: inserting values
in thread Linked lists as arrays: inserting values

I had checked List::MoreUtils and noted it didn't do that, and it might be nice for completeness. But given the other replies here, I think splice is about perfect as-is.

<radiant.matrix>
A collection of thoughts and links from the minds of geeks
The Code that can be seen is not the true Code
I haven't found a problem yet that can't be solved by a well-placed trebuchet


Comment on Re^2: Linked lists as arrays: inserting values
Re^3: Linked lists as arrays: inserting values
by holli (Monsignor) on Sep 26, 2006 at 07:00 UTC
    Yup. I benchmarked my solution against the other two and it is way slower. But: It looks best ;-)


    holli, /regexed monk/

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://574796]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-07-06 01:33 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 (68 votes), past polls