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

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

by perl5ever (Pilgrim)
on Nov 22, 2010 at 00:02 UTC ( #872838=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Does perl6 have a native linked-list data type?
in thread Does perl6 have a native linked-list data type?

... That's correct, but I honestly don't understand the point. If you want lists, you just use the built-in lists. ...
The polymorphism would be useful. Sometime you don't care about the implementation - you just need an object which has some of the properties of an array (like the ability to perform map and grep on it.) In that case you can return a real array or a chain of CONS cells whichever is most convenient.


Comment on Re^4: Does perl6 have a native linked-list data type?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (15)
As of 2014-12-19 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (86 votes), past polls