Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

MapGrocery

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1.13 sec, absolute running time: 0.18 sec, cpu time: 0.02 sec, memory peak: 5 Mb, absolute service time: 1,43 sec  
edit mode |  history  | discussion
A 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