No... that's what manuals are for. It's analogous to #^:_1!.'f' where you wouldn't know what 'f' does without reading the manual. Likewise, you would document ;:^:_1!.'f' on the Power page and the word would get out.
Henry Rich > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Roger Hui > Sent: Thursday, June 14, 2007 10:38 AM > To: Programming forum > Subject: Re: [Jprogramming] ;:^:_1!.string > > > ;:^:_1!.'-' 'a';'bc';'def' > > > > Much more elegant, I say. > > u!.n requires that you know about the specific case. > Can a person be expected to figure out what > ;:^:_1!.'-' does from what =!.0 does, without > reading the manual? > > > > ----- Original Message ----- > From: Henry Rich <[EMAIL PROTECTED]> > Date: Thursday, June 14, 2007 7:31 am > Subject: [Jprogramming] ;:^:_1!.string > > > I often have boxed data like > > > > 'a';'bc';'def' > > > > that I want to run together with delimiters, for example > > > > a-bc-def > > > > I admit this is not such a challenge; my best solution is > > > > }:@;@:(,&'-'&.>) 'a';'bc';'def' > > > > > > But I don't like the way it looks; especially I don't like > > that }: is really the obverse of (,&'-') but that fact does not > > appear (and I don't want to add yet more code by replacing }: > > with ,&'-'^:_1 ). > > > > We have a function that runs boxes together: ;:^:_1 . Why > > not let it take a Fit that gives the delimiter > > (' ' by default)? Then I would write > > > > ;:^:_1!.'-' 'a';'bc';'def' > > > > Much more elegant, I say. > ---------------------------------------------------------------------- > For information about J forums see > http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
