Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Does perl6 have a native linked-list data type?

by LanX (Chancellor)
on Nov 17, 2010 at 22:05 UTC ( #872063=note: print w/ replies, xml ) Need Help??


in reply to Does perl6 have a native linked-list data type?

> For instance, CONS cells can be implemented in perl5 by using two-element arrays, but that's not very efficient.

Hmm, like demonstrated in HOP?

But - out of curiosity - could you please elaborate "not very efficient"? Did you benchmark it? Or do you mean memory consumption?

When brainstorming, possible alternatives come into mind to realize a second slot in perl5 (like dualvars, tieing, blessing, glob-slots,...).

Cheers Rolf

PS: I'm well aware of the pros of CONS... ;-)

  • Comment on Re: Does perl6 have a native linked-list data type?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2016-06-27 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (337 votes). Check out past polls.