O'Reilly logo
  • Sam Zeitlin thinks this is interesting:

def largest(as: Int*): Int = as.reduceLeft((a, b)=> a maxb)

From

Cover of Beginning Scala, Second Edition

Note

this doesn't work.
should be def largest(as: Int*): Int = as.reduceLeft((a,b)=> a max(b))