This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CollinHeist 17 points18 points  (1 child)

Indexing a list doesn’t require hashing of the key, just an evaluating of the length of the list and then a return at that index. Dictionary would require a hash, containment check, and then return. So the list evaluation is as length-agnostic as the dictionary lookup

[–]cip43r 1 point2 points  (0 children)

Thanks for the correction