On 5 March 2014 05:25, Elias Mårtenson <loke...@gmail.com> wrote:
> Referencing yesterday's discussion about ⍤, I realised that I can use it to
> get the indexes like this:
>
>       X
> ┌→─┐
> ↓xz│
> │zx│
> │ab│
> │ba│
> └──┘
>       ⍋⍤1 X
> ┌→──┐
> ↓1 2│
> │2 1│
> │1 2│
> │2 1│
> └───┘
>
>
> However, I can't figure out a good way to apply it to the original array.
> Really, what is th ebest solution to this problem?

      {⍵[⍋⍵]}⍤1 X

Jay.

Reply via email to