|
From: | Blake McBride |
Subject: | Re: [Bug-apl] Question about behavior of ⍋ |
Date: | Tue, 8 Jul 2014 09:41:23 -0500 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |