Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
MapGroceryA grocery list: A:30 B:20 C:10 P:10 Q:14 R:12 Another list created with map at(): BBB:25 DDD:35 LLL:55 Another list ,grocery2,created with map '[ ]'and '=': W:21 X:22 Y:23 Z:23 grocery list after swap: W =>21 X =>22 Y =>23 Z =>23 After erase() grocery2 has 2 elements And they are: A:30 R:12 |