kotlin every
snippet in kotlin

kotlin every

user7355

val array = arrayOf(8, 3, 5, 9, 1, 2)
array.all { it < 9 } // false
array.all { it < 10 } // true