You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The for...in loop, when applied to maps, now calls the keys() function, then iterates over the key array and requests the map item for each key individually. The repr() function is implemented in a similar fashion. Thus, the map tree is traversed twice: first when constructing the key array, then for accessing the map items. In theory, a single traversal is enough to get both the keys and the items.
The text was updated successfully, but these errors were encountered:
The
for...in
loop, when applied to maps, now calls thekeys()
function, then iterates over the key array and requests the map item for each key individually. Therepr()
function is implemented in a similar fashion. Thus, the map tree is traversed twice: first when constructing the key array, then for accessing the map items. In theory, a single traversal is enough to get both the keys and the items.The text was updated successfully, but these errors were encountered: