First: Difference between revisions

Jump to navigation Jump to search
479 bytes added ,  14:27, 30 October 2019
no edit summary
Miraheze>Adám Brudzewsky
(Created page with "{{Primitives|⊃|↑|First}} is a primitive monadic function which extracts the first element from its argument. {{APL built-ins}}")
 
Miraheze>Marshall
No edit summary
Line 1: Line 1:
{{Primitives|⊃|↑|First}} is a [[primitive function|primitive]] [[monadic function]] which extracts the first [[element]] from its argument.
{{Primitives|⊃|↑|First}} is a [[monadic function]] which extracts the first [[element]] in [[ravel order]] from its argument, or, if the argument is [[empty]], returns its [[prototype]]. 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 taking the Head of the [[Ravel]] of the argument.


{{APL built-ins}}
{{APL built-ins}}
Anonymous user

Navigation menu