Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: Nodes count in Linked List (dictionary?)

by LanX (Saint)
on Mar 31, 2015 at 13:44 UTC ( [id://1121998]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Nodes count in Linked List
in thread Perl linked list

> 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

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)

PS: Je suis Charlie!

update

Added WP links

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-20 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found