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