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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
目前的map.set等,当元素不存在时,都是在末尾添加新元素。这就意味着如果需要按添加顺序相反的顺序消费Map等,就会遇到麻烦。
当然,这是建立在Map的底层实现是类似链表而不是数组的前提下的,这种情况下增加这个功能惠而不费。否则就性价比不大了。
Beta Was this translation helpful? Give feedback.
All reactions