Find smallest number in array

scala> val myArr = Array(2000, 12, 6, 15, -2, 9)

myArr: Array[Int] = Array(2000, 12, 6, 15, -2, 9)

scala> myArr.reduceLeft(_ min _)

res: Int = -2

scala> myArr.reduceLeft(_ max _)

res: Int = 2000

More information and examples of reduceLeft method
http://alvinalexander.com/scala/scala-reduceleft-examples
https://superruzafa.github.io/visual-scala-reference/reduceLeft/
https://scastie.scala-lang.org/lehungio/vhoinEoGR8GpmcY87xmfDg/12