I am trying to reduce an array of Bools by applying the logical operator OR (||) using the following code, however I get an error:
Bool
||
In modern versions of Swift there is allSatisfy function, which checks all elements for satisfying some rule.
Swift
In OP's case:
values.allSatisfy { $0 }