Question Body:
It seems like if you want to get the keys of a mapping, you ask for them; otherwise, give me the whole mapping (constituted by a set of key-value pairs). Is there a historical reason for this?
Add a comment
It seems like if you want to get the keys of a mapping, you ask for them; otherwise, give me the whole mapping (constituted by a set of key-value pairs). Is there a historical reason for this?
Check out this thread for a discussion on the reasons behind this behavior (including that Guido likes it, and it's not likely to change).
Get the weekly newsletter! In it, you'll get:
See an example newsletter
Copyright © 2021 TechyDevs Inc.
