Don't ask to ask, just ask | |
PerlMonks |
Re^4: Does perl6 have a native linked-list data type?by perl5ever (Pilgrim) |
on Nov 22, 2010 at 00:02 UTC ( [id://872838]=note: print w/replies, xml ) | Need Help?? |
... 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.
In Section
Seekers of Perl Wisdom
|
|