nimble.match.anyPositive

nimble.match.anyPositive(data)

Determine if any values in the data are greater than zero.

Return True if one or more values in the data are greater than zero. Positive values include any numeric value greater than zero.

Parameters:

data (Nimble Base object)

Returns:

bool

See also

allPositive, positive

Examples

>>> lst = [[1, 'a', -1],
...        [1, 'b', -2],
...        [1, 'c', -3]]
>>> X = nimble.data(lst)
>>> anyPositive(X)
True
>>> lst = [[0, 'a', -1],
...        [0, 'b', -2],
...        [0, 'c', -3]]
>>> X = nimble.data(lst)
>>> anyPositive(X)
False