Mathematica > Testing Expressions >

VectorQ

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.
VectorQ[expr, test]
gives True only if test yields True when applied to each of the elements in expr.
New in 1 | Last modified in 2
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team