Take: Difference between revisions

Jump to navigation Jump to search
355 bytes added ,  14:17, 18 October 2019
→‎History: APL\360 history
Miraheze>Marshall
Miraheze>Marshall
(→‎History: APL\360 history)
Line 97: Line 97:
== History ==
== History ==


In [[A Programming Language]], prefix and suffix operations were described using the syntax <code>⍺<sup>j</sup>/x</code> to take the first <code>j</code> elements of vector <code>x</code> and <code>⍵<sup>j</sup>/x</code> for the last <code>j</code> elements. This combined a use of the special prefix and suffix vectors <code>⍺<sup>j</sup>(n)</code> and <code>⍵<sup>j</sup>(n)</code> with [[Compress|compression]], with the length <code>n</code> inferred based on the length of <code>x</code>. The symbol <code>↑</code> was used for vector [[Rotate]], while <code>↓</code> rotated in the opposite direction.<ref>Iverson, Kenneth E. (1962). A Programming Language. Wiley. ISBN 978-0-471-43014-8.</ref>
In [[A Programming Language]], prefix and suffix operations were described using the syntax <code>⍺<sup>j</sup>/x</code> to take the first <code>j</code> elements of vector <code>x</code> and <code>⍵<sup>j</sup>/x</code> for the last <code>j</code> elements. This combined a use of the special prefix and suffix vectors <code>⍺<sup>j</sup>(n)</code> and <code>⍵<sup>j</sup>(n)</code> with [[Compress|compression]], with the length <code>n</code> inferred based on the length of <code>x</code>. The symbol <code>↑</code> was used for vector [[Rotate]], while <code>↓</code> rotated in the opposite direction.<ref>Iverson, K.E. (1962). A Programming Language. Wiley. ISBN 978-0-471-43014-8.</ref>


Take using the symbol <code>↑</code> was first present in [[APL\360]].
Take using the symbol <code>↑</code> was absent from the first version of [[APL\360]]<ref>Falkoff, A.D., and K.E. Iverson. [https://www.jsoftware.com/papers/APL360TerminalSystem.htm "The APL\360 Terminal System"]. Research Report RC-1922, IBM, 1967-10-16.</ref> but was introduced by 1968<ref>Falkoff, A.D., and K.E. Iverson, "[http://keiapl.org/archive/APL360_UsersMan_Aug1968.pdf APL\360 User's Manual]". IBM, August 1968.</ref>.


The [[Function axis|axis]] specification for Take was defined in [[APL2]]. It is shared by [[SHARP APL]] and [[Rationalized APL]], and continues to be supported in [[Dyalog APL]].
The [[Function axis|axis]] specification for Take was defined in [[APL2]]. It is shared by [[SHARP APL]] and [[Rationalized APL]], and continues to be supported in [[Dyalog APL]].
Anonymous user

Navigation menu