First: Difference between revisions

Jump to navigation Jump to search
128 bytes removed ,  18:26, 26 October 2020
no edit summary
No edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| class=vertical-navbox style="float:right; font-size:500%; margin:0 1ex;"
{{Infobox terminology
|<code></code> <code></code>
| title = {{Icon|⊃}} {{Icon|}}
|}
| en = First, [[Disclose]]
'''First''' (<code>⊃</code> or <code>↑</code> and also called '''Disclose''') is a [[monadic function]] in [[Nested array model|nested]] APLs which extracts the first [[element]] in [[ravel order]] from its argument, or, if the argument is [[empty]], returns its [[prototype]]. The [[glyph]] used varies by dialect. In a [[Nested array model|nested]] APL, First reduces the positive [[depth]] of an argument other than a [[simple scalar]] by at least one; in a [[Flat array model|flat]] APL it does not change the depth. A flat array language may also use the [[Head]] function to get the first [[major cell]] of its argument rather than the first 0-[[cell]]. In this case First can be obtained by [[take|taking]] the Head of the [[Ravel]] of the argument.
}}
'''First''' is a [[monadic function]] in [[Nested array model|nested]] APLs which extracts the first [[element]] in [[ravel order]] from its argument, or, if the argument is [[empty]], returns its [[prototype]]. The [[glyph]] used varies by dialect. In a [[Nested array model|nested]] APL, First reduces the positive [[depth]] of an argument other than a [[simple scalar]] by at least one; in a [[Flat array model|flat]] APL it does not change the depth. A flat array language may also use the [[Head]] function to get the first [[major cell]] of its argument rather than the first 0-[[cell]]. In this case First can be obtained by [[take|taking]] the Head of the [[Ravel]] of the argument.


== External links ==
== External links ==
Line 16: Line 17:
== See also ==
== See also ==
* [[Mix]]
* [[Mix]]
* [[Disclose (disambiguation)]]
* [[Right Shoe]]
* [[Right Shoe]]
{{APL built-ins}}[[Category:Primitive functions]]
{{APL built-ins}}[[Category:Primitive functions]]

Navigation menu