I’m trying to write this in a more functional way ...
# functional
h
I’m trying to write this in a more functional way
Copy code
fun testNoneFP(nums: IntArray): Boolean {
    for (i in nums.indices) {
        if (nums[i] != 1 && nums[i] != 4) {
            return false
        }
    }
    return true
}
so I use the
all
function but Im its not working