Indices: Difference between revisions

Jump to navigation Jump to search
85 bytes added ,  14:31, 24 October 2019
Miraheze>Marshall
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.
Anonymous user

Navigation menu