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

MapGrocery

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1.27 sec, absolute running time: 0.26 sec, cpu time: 0.02 sec, memory peak: 5 Mb, absolute service time: 1,65 sec 
latest |  history
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