nimble.match.anyInteger

nimble.match.anyInteger(data)

Determine if any values in the data are an integer type.

Return True if one or more value in the data is an integer type.

Parameters:

data (Nimble Base object)

Returns:

bool

See also

allInteger, integer

Examples

>>> lst = [[0, -1.0, 'a'],
...        [1, -2.0, 'b'],
...        [2, -3.0, 'c']]
>>> X = nimble.data(lst)
>>> anyInteger(X)
True
>>> lst = [['a', -1.0, None],
...        ['b', -2.0, None],
...        ['c', -3.0, None]]
>>> X = nimble.data(lst)
>>> anyInteger(X)
False