-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add map.keys() #14716
Comments
Kind of a follow-on to #13624 after having more map experience under my belt. |
I think we should have Apparently, I said in #13624:
Reading this again, I don't know why I didn't add |
Only vaguely related, but recall that late discussion on issue #13624 also raised the question as to whether |
Add map.keys() This PR adds `keys` iterator to `map`. Resolves #14716. [Reviewed by @daviditen] Test: - [x] standard - [x] gasnet
I find myself trying to use
map.keys()
quite often, both because of the symmetry withmap.values()
and my python background leading me to expect a similar interface todict
. However, this results in a not-so-great error message, becausekeys
is an array field, not a method:I am in favor of adding a
keys()
iterator to mirror thevalues()
iterator. If not, we should at least add a better error message for this specific case.The text was updated successfully, but these errors were encountered: