-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
analyzerThis issue is related to the analyzerThis issue is related to the analyzercompilerThis has to do with the bytecode compilerThis has to do with the bytecode compilerenhancementNew feature or requestNew feature or request
Description
a method to get (key, value) pairs from a Map, e.g.:
input: {1: 2, 2: 4, 3: 6}
output: [[1, 2], [2, 4], [3, 6]]
this would be useful for iterating over maps, e.g. when correlating with another map:
# both of these have album ID as their key
albumart = {…}
albumtitles = {…}
for id, title in albumtitles.items():
art = albumart[id]
pass # do stuff with title and artsome notes:
- the pairs should be final and immutable.
- I'm assuming there's no unpacking support for
forloops yet? would also be very beneficial.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
analyzerThis issue is related to the analyzerThis issue is related to the analyzercompilerThis has to do with the bytecode compilerThis has to do with the bytecode compilerenhancementNew feature or requestNew feature or request