Indices: Difference between revisions
Jump to navigation
Jump to search
Miraheze>Marshall |
Miraheze>Adám Brudzewsky m (Text replacement - "<code>" to "<source lang=apl inline>") |
||
Line 3: | Line 3: | ||
{{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. | {{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 < | Indices was introduced in [[J]] as <source lang=apl inline>I.</code> and is present in [[K]] as <source lang=apl inline>&</code>. | ||
== Examples == | == Examples == |