Indices: Difference between revisions

Jump to navigation Jump to search
1 byte removed ,  22:29, 2 November 2019
no edit summary
Miraheze>Adám Brudzewsky
m (Text replacement - "</code>" to "</source>")
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.''


{{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.
{{Built-in|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 <source lang=apl inline>I.</source> and is present in [[K]] as <source lang=apl inline>&</source>.
Indices was introduced in [[J]] as <source lang=apl inline>I.</source> and is present in [[K]] as <source lang=apl inline>&</source>.

Navigation menu