Collection.st
changeset 22637 cbd7ba691053
parent 22622 b044b21ece42
child 22638 b6a1935838d0
--- a/Collection.st	Tue Mar 20 12:51:25 2018 +0100
+++ b/Collection.st	Tue Mar 20 15:03:36 2018 +0100
@@ -2831,10 +2831,10 @@
      If the receiver collection is empty, return nil.  
      This method might also be called elect:."
 
-    | maxElement maxValue |
+    | maxElement |
 
     self do: [:each | 
-        | val |
+        | val maxValue |
 
         val := aBlockOrSymbol value: each.
         "Note that there is no way to get the first element 
@@ -2852,7 +2852,7 @@
     "
 
     "Created: / 20-08-2011 / 21:34:49 / cg"
-    "Modified (format): / 20-09-2017 / 18:15:35 / stefan"
+    "Modified (format): / 20-03-2018 / 14:57:42 / stefan"
 !
 
 detectMin: aBlockOrSymbol
@@ -2860,10 +2860,10 @@
      Answer the element for which aBlock evaluates to the lowest number.
      If the receiver collection is empty, return nil."
 
-    | minElement minValue |
+    | minElement |
 
     self do: [:each | 
-        | val |
+        | val minValue |
 
         val := aBlockOrSymbol value: each.
         "Note that there is no way to get the first element 
@@ -2881,7 +2881,7 @@
     "
 
     "Created: / 20-08-2011 / 21:35:13 / cg"
-    "Modified (format): / 20-09-2017 / 18:15:28 / stefan"
+    "Modified (format): / 20-03-2018 / 14:57:56 / stefan"
 !
 
 do:aBlock