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.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩186 杜甫  登高
    風急天高猿嘯哀  渚清沙白鳥飛迴  無邊落木蕭蕭下  不盡長江滾滾來
    萬里悲秋常作客  百年多病獨登臺  艱難苦恨繁霜鬢  潦倒新停濁酒杯
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to