Indices: Difference between revisions

Jump to navigation Jump to search
36 bytes added ,  09:06, 29 October 2019
m
Text replacement - "<code>" to "<source lang=apl inline>"
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 <code>I.</code> and is present in [[K]] as <code>&</code>.
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 ==

Navigation menu