In both /:y and x/:y it is y that gets graded. In the monad you just get the grade; in the dyad you get x ordered by that grade.
----- Original Message ----- From: bill lam <[EMAIL PROTECTED]> Date: Monday, June 9, 2008 18:24 Subject: Re: [Jprogramming] BegQ--How to get sorted array on basis of single row/column? To: Programming forum <[email protected]> > Raul Miller wrote: > > On 6/9/08, bill lam <[EMAIL PROTECTED]> wrote: > >> I don't know if this what you wanted, > >> v {~ /: 2{"1 v > > > > Or > > v /: 2{"1 v > > > > In other words (http://www.jsoftware.com/help/dictionary/d422.htm): > > > > x/:y is (/:y){x ; i.e., x is sorted to an > order specified by y > > > > I've never sure the correct lhs and rhs ordering of dyad /: > without rtfm. There > should be a good reason for the form but not intuitive for me. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
