nimble.match.anyFalse

nimble.match.anyFalse(data)

Determine if any values in the data are a boolean False.

Return True if one or more value in the data is boolean False.

Parameters:

data (Nimble Base object)

Returns:

bool

See also

allFalse, false

Examples

>>> lst = [[0, -1.0, True],
...        [1, -2.0, True],
...        [2, -3.0, False]]
>>> X = nimble.data(lst)
>>> anyFalse(X)
True
>>> lst = [[0, -1.0, True],
...        [1, -2.0, True],
...        [2, -3.0, True]]
>>> X = nimble.data(lst)
>>> anyFalse(X) # Note: 0 is not boolean type
False