nimble.match.allTrue¶
- nimble.match.allTrue(data)¶
Determine if all values in the data are a boolean True.
Return True if every value in the data is boolean True.
- Parameters:
data (Nimble Base object)
- Returns:
bool
Examples
>>> lst = [[True, True, True], ... [True, True, True], ... [True, True, True]] >>> X = nimble.data(lst) >>> allTrue(X) True
>>> lst = [[True, True, True], ... [True, False, True], ... [True, True, True]] >>> X = nimble.data(lst) >>> allTrue(X) False