i'm having two arrays of booleans:
arr1 = [true, false, false, true]
arr2 = [false, false, false ,true]
I want to make a function that is returning true only if arr1 and arr2 contains true but only one true for each array. For example for the above arrays the function must return false. If the arrays are like this:
arr1 = [true, false, false, false]
arr2 = [false, false, false ,true]
the function will return true. Do tou know a quick way for achieving this without having to count the elements?