Skip to content

AllTrue

Status: Stable

documented, exercised by the test suite and/or worked examples, with no known limitations recorded.

Description

AllTrue[list, test]

Gives True if test[e] is True for every element e (True for an empty list). Over an association, tests the values.

Examples (3)

Every input below was run against the current Mathilda build and its output recorded.

Basic examples (3)

In[1]:= AllTrue[{2, 4, 6}, EvenQ]
Out[1]= True

In[2]:= AnyTrue[{1, 3, 4}, EvenQ]
Out[2]= True

In[3]:= NoneTrue[{1, 3, 5}, EvenQ]
Out[3]= True

Implementation notes

Attributes: Protected.

References

See also: AnyTrue, NoneTrue