Hi Elias,

nice trick!

/// Jürgen


On 07/08/2014 08:58 AM, Elias Mårtenson wrote:
By the way, I found a workaround to the string ordering. The workaround requires memory on the order of ↑(⍴V)×⌈/⍴¨V for a vector V. This should be enough justification for the proposed extension.

Here's what I do: instead of doing the following:

*z[⍋z←'foo' 'bar' 'test' 'aaaaaa']*
┌→──────────────────────────┐
│┌→──┐ ┌→──┐ ┌→───┐ ┌→─────┐│
││bar│ │foo│ │test│ │aaaaaa││
│└───┘ └───┘ └────┘ └──────┘│
└∊──────────────────────────┘

I do this:

*z[⍋⊃z←'foo' 'bar' 'test' 'aaaaaa']*
┌→──────────────────────────┐
│┌→─────┐ ┌→──┐ ┌→──┐ ┌→───┐│
││aaaaaa│ │bar│ │foo│ │test││
│└──────┘ └───┘ └───┘ └────┘│
└∊──────────────────────────┘

Regards,
Elias






Reply via email to