All of that stuff is just a high level way of expressing C features you should have already been exposed to. Granted, I know most people didn't build a hash table in C and use it, but I did.
Think of a tuple as an immutable struct without customizable field names. It's a basic structure that's used to represent compound data in math.
Regular arrays directly use an integer key (index), whereas associative arrays (the general term for a dictionary) use a hash of the key. So it's a hash map, basically a hash table or hash tree. In Python you can use any immutable object (include number, string, and tuple) as a key.
Source: http://www.wrongplanet.net/postt219810.html
tony bennett joe walsh the civil wars duggar miscarriage roman holiday belize adele lyrics
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.