Take: Difference between revisions

Jump to navigation Jump to search
No change in size ,  14:25, 18 October 2019
m
Miraheze>Marshall
Miraheze>Marshall
Line 19: Line 19:
0 0 0 5 4 3 2 1
0 0 0 5 4 3 2 1
</source>
</source>
{{Works in|[[Dyalog APL]], [[ngn/APL]]}}
{{Works in|[[Dyalog APL]], [[ngn/apl]]}}


A higher-[[rank]] array can be shortened by using a left argument with one element for each axis:
A higher-[[rank]] array can be shortened by using a left argument with one element for each axis:
Line 30: Line 30:
└───┴───┴───┘
└───┴───┴───┘
</source>
</source>
{{Works in|[[Dyalog APL]], [[dzaima/APL]], [[ngn/APL]]}}
{{Works in|[[Dyalog APL]], [[dzaima/APL]], [[ngn/apl]]}}


In languages with the SHARP APL extension, the left argument can be shortened. This causes leading axes of the right argument to be modified while trailing axes are ignored.
In languages with the SHARP APL extension, the left argument can be shortened. This causes leading axes of the right argument to be modified while trailing axes are ignored.
Line 41: Line 41:
└───┴───┴───┴───┴───┘
└───┴───┴───┴───┴───┘
</source>
</source>
{{Works in|[[Dyalog APL]], [[ngn/APL]]}}
{{Works in|[[Dyalog APL]], [[ngn/apl]]}}


An [[Function axis|axis]] may be specified to apply left argument elements to specific axes of the right argument. Here the last axis is specified in order to take two columns of the argument.
An [[Function axis|axis]] may be specified to apply left argument elements to specific axes of the right argument. Here the last axis is specified in order to take two columns of the argument.
Anonymous user

Navigation menu