From (⌷)¶
Syntax¶
Selects major cells (first-axis slices) of Y at the indices given by i.
Result shape¶
(⍴i) , 1↓⍴Y
When i is a scalar, the result has the shape of a single major cell (1↓⍴Y).
Examples¶
Vector selection:
Matrix row selection:
Index origin¶
Respects ⎕IO. With ⎕IO←0, the first major cell has index 0.
Errors¶
- RANK ERROR if
Yis a scalar (scalars have no major cells). - INDEX ERROR if any index is out of range.
See also¶
- Bracket Indexing --
V[i],M[r;c]