I have an array with booleans in it, what is the shortest way to loop it and get the final boolean expression?
Example : an array with 3 elements (true, false, true) → the result should be false (true && false && true = false)
I know I can go through it, but is there a shorter way?
Thank!
source
share