Scala List min() method with example Last Updated : 26 Jul, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The min() method is utilized to find the smallest element of all the elements in the stated list. Method Definition: def min[B >: A](implicit ord: math.Ordering[B]): A Return Type: It returns the smallest of all the elements in the stated list. Example #1: Scala // Scala program of min() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Creating a list val m1 = List(1, 2, 3) // Applying min method val result = m1.min // Displays output println(result) } } Output: 1 Example #2: Scala // Scala program of min() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Creating a list val m1 = List(5, 12, 3, 13) // Applying min method val result = m1.min // Displays output println(result) } } Output: 3 Comment More infoAdvertise with us Next Article Scala List min() method with example N nidhi1352singh Follow Improve Article Tags : Scala Scala Scala-Method Scala-list Similar Reads Scala Int min() method with example The min() method is utilized to return the minimum value of the two specified int numbers. Method Definition: (First_Number).min(Second_Number)Return Type: It returns true the minimum value of the two specified int numbers. Example 1: Scala // Scala program of Int min() // method // Creating object 1 min read Scala Float min() method with example The min() method is utilized to return the minimum value of the two specified float numbers. Method Definition: (First_Number).min(Second_Number) Return Type: It returns the minimum value of the two specified float numbers. Example #1: Scala // Scala program of Float min() // method // Creating obje 1 min read Scala Map min() method with example The min() method is utilized to find the smallest element of the map. Method Definition: def min: (A, B) Return Type: It returns the smallest element of the map. Example #1: Scala // Scala program of min() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Cre 1 min read Scala Iterator min() method with example The min() method belongs to the concrete value members of the class AbstractIterator. It is defined in the classes IterableOnceOps. It is utilized to find the smallest element. Method Definition : def min[B >: A](implicit ord: math.Ordering[B]): A Where, B is the type over which the ordering is d 1 min read Scala List max() method with example The max() method is utilized to find the largest element of all the elements in the stated list. Method Definition: def max[B >: A](implicit ord: math.Ordering[B]): A Return Type: It returns the largest of all the elements in the stated list. Example #1: Scala // Scala program of max() // method 1 min read Like