Yes, my suggestion was an example of using /:~ to exploit J's inbuilt ordering for a simple, quick answer; but maybe /:~ 'aA1.;' (eg) isn't the order relation you require, so I agree with Raul.
Mike Sent from my iPad > On 9 Dec 2022, at 19:22, Jimmy Gauvin <[email protected]> wrote: > > Hi, > > the domain of < and others could be extended to include characters. > > Sorting with /: and \: implies there is an "order" relation between > characters. > > > J > >> On Fri, Dec 9, 2022 at 6:21 AM Donna Ydreos <[email protected]> wrote: >> >> The domain of < is numeric. You can create a function for letters with >> reference to alphabetic order or some given order including say all ASCI >> characters. >> >>>> On Dec 9, 2022, at 3:47 AM, Jimmy Gauvin <[email protected]> wrote: >>> >>> Hi all, >>> >>> testing character data for equality works fine but testing for relative >>> order does not. >>> >>> 'a'<'v' >>> >>> |domain error >>> >>> | 'a' <'v' >>> >>> 'a'='v' >>> >>> 0 >>> >>> Is this explained somewhere ? >>> >>> Thanks, >>> >>> Jimmy >>> ---------------------------------------------------------------------- >>> For information about J forums see http://www.jsoftware.com/forums.htm >> >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
