4,577
edits
(→History: Fix ref tag) |
|||
Line 8: | Line 8: | ||
fbdcea | fbdcea | ||
</source>{{Works in|[[dzaima/APL]], [[Extended Dyalog APL]]}} | </source>{{Works in|[[dzaima/APL]], [[Extended Dyalog APL]]}} | ||
Without Select, one would have to write <source lang=apl inline>Shuffle←⊢⌷⍨∘⊂?⍨∘≢</source>. In this meaning, Select might be written as <source lang=apl inline>⌷⍨∘⊂⍨</source> or <source lang=apl inline>⌷⍤0 | Without Select, one would have to write <source lang=apl inline>Shuffle←⊢⌷⍨∘⊂?⍨∘≢</source>. In this meaning, Select might be written as <source lang=apl inline>⌷⍨∘⊂⍨</source> or <source lang=apl inline>⌷⍤0 99</source> in [[Dyalog APL]] (where 99 exceeds the system's maximum array [[rank]]). | ||
In a case where the left argument is a permutation vector for the right argument, the functionality can rightfully be called ''Permute''. | In a case where the left argument is a permutation vector for the right argument, the functionality can rightfully be called ''Permute''. |