IsVector
Tests whether list is a rank-1 List, optionally with every element satisfying test.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
VectorQ✓IsVector(list)True if list is a List none of whose elements is itself a ListIsVector(list, test)as above, and test holds of every elementTyped signatures
| Type | Package | Applies |
|---|---|---|
(any, function?) -> boolean | combinatorics | always |
Details
- A List containing a List (even a ragged one) is a matrix shape, not a vector — False.
- A lazy ordered collection such as stands for the List it evaluates to.
- test is applied via Apply, same calling convention as a Function literal passed to Select/Map.
Examples
About
| Examples | 13 |
|---|---|
| Checked against | Wolfram Language 13 agree |
| Crosswalk | Wolfram Language |