Given x = [False, False, True]
How do I evaluate in Python if any of the values of x
is True without an explicit loop?
Please note that my example above is oversimplified, and the C++ std::any_of function takes a lambda for the unary callback.
If the collection above is an object with a boolean, How do I do acomplish this in Python without having to create a new collection, but just evaluating each element until one of the callback calls return True?