> I wouldn't interpret anonymous arrays as "dictionary with keys", especially if the keys have the names value and next.
Depends how you implement "dictionaries".
The arrays here are homogenous 2-tuples with constant indices value=0 and next=1
So $aref->[VALUE] is just another implementation (just far more efficient than hashes are) (updated)
not sure what the generic and neutral definition of "dictionary" is, but imho it's not necessarily a hashmap like in perl
Lisp for instance has name=>value pairs implemented as
association list.
But I have to admit that you as a non-emacs user might be handicapped in this respect ;-p
xD
update
Added WP links
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.