Thanks for the comments guys.

Currently, I internally redefined SortUp ...

So, who should change the primitives.ijs file from SortUp to SortUpUsingKeys?

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Henry Rich
Sent: Tuesday, March 03, 2009 10:14 PM
To: General forum
Subject: Re: [Jgeneral] SortUp and GradeUp in the Primitives

I suggest renaming SortUp to SortUpUsingKeys.

Henry Rich



bill lam wrote:
> On Tue, 03 Mar 2009, Sherlock Ric wrote:
>> ---Alex Rufon wrote:
>>> SortUp and GradeUp are both defined as /: in the primitives.  In
>>> parallel, SortDown and GradeDown also suffers the same issue.
>> SortUp refers to dyadic use of /:, GradeUp refers to monadic use of /:
>>
>> /:~ myarray
>> Is the special case of SortUp where you are sorting it by the grade of 
>> itself, i.e.
>> myarray /: myarray
>> However often you will want to use
>> myarray /: my2ndarray
>>
>> You cannot do this if you redefine SortUp as /:~
> 
> I think Alex's argument is reasonable. Dyadic sort is alien to most
> programmers.  If primitives are meant for beginners,  rename SortUp as
> DyadSortUp and define SortUp as /:~ will cause less surprise for those
> not yet initiated.
> 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to