This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Tests /

VectorQ

FilledSmallSquare VectorQ[expr] gives True if expr is a list or a one-dimensional SparseArray object, none of whose elements are themselves lists, and gives False otherwise.

FilledSmallSquare VectorQ[expr, test] gives True only if test yields True when applied to each of the elements in expr.

FilledSmallSquare VectorQ[expr, NumberQ] tests whether expr is a vector of numbers.

FilledSmallSquare See Section 2.3.5 and Section 3.7.3.

FilledSmallSquare See also: MatrixQ, ArrayDepth.

FilledSmallSquare New in Version 1; modified in 2.

Further Examples