nimble.match.allBoolean¶
- nimble.match.allBoolean(data)¶
Determine if all values in the data are a boolean type.
Return True if every value in the data is boolean type.
- Parameters:
data (Nimble Base object)
- Returns:
bool
See also
Examples
>>> lst = [[True, True, False], ... [True, True, True], ... [False, True, True]] >>> X = nimble.data(lst) >>> anyBoolean(X) True
>>> lst = [[0, True, False], ... [1, True, True], ... [0, True, True]] >>> X = nimble.data(lst) >>> allBoolean(X) # Note: 0 and 1 are not boolean type False