Indices: Difference between revisions

Jump to navigation Jump to search
5 bytes added ,  16:11, 24 October 2019
no edit summary
Miraheze>Marshall
Miraheze>Adám Brudzewsky
No edit summary
Line 1: Line 1:
''This function describes a primitive whose result is a list of indices. See [[Index]] for the page on indices themselves.''
:''This function describes a primitive whose result is a list of indices. See [[Index]] for the page on indices themselves.''


Indices (<code>⍸</code>), or Where, is a [[monadic]] [[primitive function]] which returns the [[Index|indices]] of all ones in a [[boolean]] array. More generally, Indices accepts an array of non-negative integers and copies each index the corresponding number of times.
{{Primitive|⍸|Indices}} or '''Where''', is a [[monadic]] [[primitive function]] which returns the [[Index|indices]] of all ones in a [[boolean]] array. More generally, Indices accepts an array of non-negative integers and copies each index the corresponding number of times.


Indices was introduced in [[J]] as <code>I.</code> and is present in [[K]] as <code>&</code>.
Indices was introduced in [[J]] as <code>I.</code> and is present in [[K]] as <code>&</code>.

Navigation menu