First: Difference between revisions
Jump to navigation
Jump to search
(Revert terminology infobox) |
|||
Line 14: | Line 14: | ||
* [https://help.dyalog.com/18.0/#Language/Primitive%20Functions/Disclose.htm Dyalog] (<source lang=apl inline>⊃</source>) | * [https://help.dyalog.com/18.0/#Language/Primitive%20Functions/Disclose.htm Dyalog] (<source lang=apl inline>⊃</source>) | ||
* [http://microapl.com/apl_help/ch_020_020_550.htm APLX] (<source lang=apl inline>↑</source>) | * [http://microapl.com/apl_help/ch_020_020_550.htm APLX] (<source lang=apl inline>↑</source>) | ||
* [https://mlochbaum.github.io/BQN/doc/pick.html#first BQN] | |||
== See also == | == See also == | ||
* [[Mix]] | * [[Mix]] | ||
* [[Right Shoe]] | * [[Right Shoe]] | ||
{{APL built-ins}}[[Category:Primitive functions]] | {{APL built-ins}}[[Category:Primitive functions]] |
Revision as of 02:28, 28 May 2022
⊃ ↑
|
First (⊃
or ↑
and also called Disclose) is a monadic function in 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 APL, First reduces the positive depth of an argument other than a simple scalar by at least one; in a 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 taking the Head of the Ravel of the argument.