Take: Difference between revisions

Jump to navigation Jump to search
1 byte removed ,  11:50, 25 October 2019
class= → lang=
Miraheze>Adám Brudzewsky
No edit summary
Miraheze>Adám Brudzewsky
(class= → lang=)
Line 77: Line 77:
The following [[dfn]] models Take as defined by [[Dyalog APL]] but with no axis specification or error checking. It is implemented by construction a [[nested array]] of indices and using these to select from the right argument, with prototypes used for out-of-range indices. It explicitly includes [[scalar rank extension]] for the right argument and the SHARP APL extension; if these extensions are not wanted those lines can be removed. [[Scalar rank extension]] of the left argument is inherited from [[Iota]] and [[scalar function]] extension.
The following [[dfn]] models Take as defined by [[Dyalog APL]] but with no axis specification or error checking. It is implemented by construction a [[nested array]] of indices and using these to select from the right argument, with prototypes used for out-of-range indices. It explicitly includes [[scalar rank extension]] for the right argument and the SHARP APL extension; if these extensions are not wanted those lines can be removed. [[Scalar rank extension]] of the left argument is inherited from [[Iota]] and [[scalar function]] extension.


<source class=apl>
<source lang=apl>
Take ← {
Take ← {
   ⎕IO←0                        ⍝ For index comparisons
   ⎕IO←0                        ⍝ For index comparisons

Navigation menu