ListQ

ListQ[expr]

gives True if the head of expr is List, and False otherwise.

Examples

open all close all

Basic Examples  (2)

ListQ gives True when the head of an expression is List:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

ListQ gives False when the head of an expression is not List:

In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=

ListQ gives False on other array representations:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Properties & Relations  (3)

Introduced in 1991
(2.0)