Skip to content

ListQ

ListQ[expr] checks if expr has a head of List.

Attributes[ListQ] := {Protected}

Simple examples

In[1]:= ListQ[{a}]
Out[1]= True
In[2]:= ListQ[a]
Out[2]= False
In[3]:= ListQ[{}]
Out[3]= True