fork download
  1. | mymap |
  2.  
  3. mymap := Dictionary new
  4. at: #a put: 1;
  5. at: #b put: 2;
  6. at: #c put: 3;
  7. yourself.
  8.  
  9. mymap keysAndValuesDo: [ :k :x |
  10. Transcript cr;
  11. show: 'Key = ', k printString;
  12. show: ', Value = ', x printString.
  13. ]
Success #stdin #stdout 0.01s 7988KB
stdin
Standard input is empty
stdout
Key = #a, Value = 1
Key = #b, Value = 2
Key = #c, Value = 3