class: Collection
authorClaus Gittinger <cg@exept.de>
Wed, 12 Feb 2014 15:35:02 +0100
changeset 16001 bfcae2d9da7f
parent 16000 74d0c38d1834
child 16002 5fd1486ee60a
class: Collection category of: #median
Collection.st
--- a/Collection.st	Wed Feb 12 15:33:40 2014 +0100
+++ b/Collection.st	Wed Feb 12 15:35:02 2014 +0100
@@ -778,16 +778,6 @@
     "Created: 6.2.1996 / 15:27:49 / cg"
 !
 
-median
-    "Return the middle element, or as close as we can get."
-
-    ^ self asSortedCollection median
-
-    "
-     #(10 35 20 45 30 5) median
-    "
-!
-
 nth:n
     "return the nth element of the collection.
      For unordered collections, this simply returns the nth
@@ -5008,6 +4998,16 @@
     "Created: / 13-04-2011 / 16:53:44 / cg"
 !
 
+median
+    "Return the middle element, or as close as we can get."
+
+    ^ self asSortedCollection median
+
+    "
+     #(10 35 20 45 30 5) median
+    "
+!
+
 standardDeviation
     "standard deviation value of all elements in the collection,
      which is the complete set and not a sample."
@@ -5374,11 +5374,11 @@
 !Collection class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.322 2014-02-12 14:33:29 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.323 2014-02-12 14:35:02 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.322 2014-02-12 14:33:29 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.323 2014-02-12 14:35:02 cg Exp $'
 ! !