src/Pure/ML/ml_statistics.scala
changeset 73359 d8a0e996614b
parent 73340 0ffcad1f6130
child 73367 77ef8bef0593
--- a/src/Pure/ML/ml_statistics.scala	Wed Mar 03 22:48:46 2021 +0100
+++ b/src/Pure/ML/ml_statistics.scala	Thu Mar 04 15:41:46 2021 +0100
@@ -268,7 +268,7 @@
   /* content */
 
   def maximum(field: String): Double =
-    (0.0 /: content)({ case (m, e) => m max e.get(field) })
+    content.foldLeft(0.0) { case (m, e) => m max e.get(field) }
 
   def average(field: String): Double =
   {