Hmm... you're right. And, simpler,
lessThan=: (~:/ * 0 1 -: /:)@,&<&, That said, part of this is also that strings are implied to be rank 1 and not in-and-of themselves boxed, so, maybe: lessThan=: (~:/ * 0 1 -: /:)@,&<&(,"1 L:0) Thanks, -- Raul On Fri, Mar 13, 2020 at 12:40 PM Henry Rich <henryhr...@gmail.com> wrote: > > grade would be faster than sort here I expect. > > Henry Rich > > On 3/13/2020 12:25 PM, Raul Miller wrote: > > That's really a naming thing. It's testing for less than or equals. > > > > Your original version also had this character: > > > > 'test' ({.@:sort -: {.)@:; 'test' > > 1 > > > > But, yes, you can suppress the equality part with a further test. > > > > Thanks, > > > > > -- > This email has been checked for viruses by AVG. > https://www.avg.com > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm