Indices: Difference between revisions
Jump to navigation
Jump to search
→Description and APL model
Miraheze>Marshall m (→Examples) |
Miraheze>Marshall |
||
Line 43: | Line 43: | ||
The argument is restricted to be an array of non-negative integers, or, in [[Dyalog APL]], booleans. | The argument is restricted to be an array of non-negative integers, or, in [[Dyalog APL]], booleans. | ||
Because Indices returns indices (like [[Iota]]), it is subject to [[index origin]]. | |||
The only [[Flat array model|flat]] array language which implements Indices is [[J]]. Because J's [[iota]] does not return multidimensional indices, J defines Indices to have [[function rank]] 1 so that only [[vector]] indices are used. | The only [[Flat array model|flat]] array language which implements Indices is [[J]]. Because J's [[iota]] does not return multidimensional indices, J defines Indices to have [[function rank]] 1 so that only [[vector]] indices are used. |