nimble.match.allInteger

nimble.match.allInteger(data)

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

Return True if every value in the data is an integer type.

Parameters:

data (Nimble Base object)

Returns:

bool

See also

anyInteger, integer

Examples

>>> lst = [[1, 9, True],
...        [2, 8, False],
...        [3, 7, True]]
>>> X = nimble.data(lst)
>>> allInteger(X)
True
>>> lst = [[1, 9, -1.1],
...        [2, 8, -2.2],
...        [3, 7, -3.3]]
>>> X = nimble.data(lst)
>>> allInteger(X)
False