|
From: | Elias Mårtenson |
Subject: | Re: [Bug-apl] Question about behavior of ⍋ |
Date: | Tue, 8 Jul 2014 11:43:48 +0800 |
Looking at the spec, it seems that monadic grade is defined only for numeric data.That leaves open the question of whether my example should have signaled a domain error.On Mon, Jul 7, 2014 at 11:25 AM, David Lamkins <address@hidden> wrote:Given a list of character vectors (and scalars), grade appears to generate the permutation vector first by length then by content.This seems counterintuitive. It seems as if ⍋ treats character strings like numbers. Is this a bug?
⍋'aaa' 'xx' 'y' 'bbb' 'cc'
3 5 2 1 4
--"The secret to creativity is knowing how to hide your sources."Albert Einstein
--"The secret to creativity is knowing how to hide your sources."Albert Einstein
[Prev in Thread] | Current Thread | [Next in Thread] |