Take: Difference between revisions
Jump to navigation
Jump to search
Miraheze>Marshall m (→History) |
Miraheze>Marshall m (→Examples) |
||
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/ | {{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/ | {{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/ | {{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. |