Indices: Difference between revisions
Jump to navigation
Jump to search
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 | {{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>. |