Max returns the largest number in the collection: val numbers = listOf(1, 2, 3, 4, 5)val max = numbers.max()