#DOCUMENTATION by Maren
authormatilk
Mon, 23 Oct 2017 12:59:48 +0200
changeset 22322 e8e314fee20f
parent 22321 9d2e84a333a0
child 22323 d289144495cb
#DOCUMENTATION by Maren class: OrderedDictionary class comment/format in: #examples fix usage of #collect:
OrderedDictionary.st
--- a/OrderedDictionary.st	Mon Oct 23 00:09:48 2017 +0200
+++ b/OrderedDictionary.st	Mon Oct 23 12:59:48 2017 +0200
@@ -114,7 +114,8 @@
 
     o from:3 to:6 do:[:each | Transcript showCR:each ].
 
-    o collect:[:eachAssoc | eachAssoc key -> eachAssoc value squared]. 
+    o collect:[:eachValue | eachValue squared].
+    o associationsCollect:[:eachAssoc | eachAssoc key -> eachAssoc value squared]. 
     o associations.  
     o order.         
     o reverse.