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