2,951
edits
m (Text replacement - " ⊢( *[^∘])" to " ⎕←$1") |
(→Documentation: BQN link) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 99: | Line 99: | ||
⍺ ← ¯1+≢⍴⍵ ⍝ Assume last axis | ⍺ ← ¯1+≢⍴⍵ ⍝ Assume last axis | ||
l ← ⍺ ⌷ ⍴⍵ ⍝ Length of reversed axis | l ← ⍺ ⌷ ⍴⍵ ⍝ Length of reversed axis | ||
( | (⊂l-1+⍳l) ⌷[⍺] ⍵ ⍝ Reverse with indexing | ||
} | } | ||
</source> | </source> | ||
Line 111: | Line 111: | ||
=== Documentation === | === Documentation === | ||
* [ | * [https://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Reverse.htm Dyalog] | ||
* [http://microapl.com/apl_help/ch_020_020_510.htm APLX] | * [http://microapl.com/apl_help/ch_020_020_510.htm APLX] | ||
* J [https://www.jsoftware.com/help/dictionary/d231.htm Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/bardot NuVoc] (only first-axis reverse exists) | * J [https://www.jsoftware.com/help/dictionary/d231.htm Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/bardot NuVoc] (only first-axis reverse exists) | ||
* [https://mlochbaum.github.io/BQN/doc/reverse.html BQN] | |||
{{APL built-ins}}[[Category:Primitive functions]][[Category:Functions with first- and last-axis forms]] | {{APL built-ins}}[[Category:Primitive functions]][[Category:Functions with first- and last-axis forms]] |