Skip to content

AllTrue

AllTrue[list, condition] returns True if all parts of list satisfy condition.

Attributes[AllTrue] := {Protected}

Simple examples

In[1]:= AllTrue[{1, a}, NumberQ]
Out[1]= False
In[2]:= AllTrue[{1, 2}, NumberQ]
Out[2]= True