IsArray
Tests whether t is a List with a uniform (non-ragged) shape at every depth, any rank, optionally with every leaf satisfying test.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
ArrayQ✓IsArray(t)True if t is a List whose nesting is rectangular at every level (a "full array")IsArray(t, test)as above, and test holds of every leafTyped signatures
| Type | Package | Applies |
|---|---|---|
(any, function?) -> boolean | combinatorics | always |
Details
- Generalizes IsVector (rank 1) and IsMatrix (rank 2) to any rank, including a flat List (rank 1) and a ragged List (False, same as the other two).
- A non-List is False — a bare scalar isn't an array of rank 0 here.
Examples
About
| Examples | 8 |
|---|---|
| Checked against | Wolfram Language 8 agree |
| Crosswalk | Wolfram Language |