Could you please give a sample of your use of your swap. I can't understand your description or the input(s).
Thanks, On Sat, May 30, 2020 at 3:27 AM Hauke Rehr <hauke.r...@uni-jena.de> wrote: [snip] My last use case was a boxed list consisting of > a 1-d array and a set of transpositions I produced. > I wrote (I bet there are better ways to do it) > swap =: ] {~ ~.@[ C.@; <:@#@] > and applied it on that boxed list. > That actually looked something like 'swap&.>/@:|.' . > > -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm