all function kotlin code example
Example: kotlin every
val array = arrayOf(8, 3, 5, 9, 1, 2)
array.all { it < 9 } // false
array.all { it < 10 } // true
val array = arrayOf(8, 3, 5, 9, 1, 2)
array.all { it < 9 } // false
array.all { it < 10 } // true