The current behavior is not an accident. It works as it should. Any change would break existing code.
(,&.>'()') =/ ;: '( =. ()=.)' 1 0 1 0 0 0 0 0 0 1 0 1 The line you say has 'no output' does have output - a blank line - which is correct. Henry Rich > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of p j > Sent: Tuesday, March 28, 2006 9:08 PM > To: Programming forum > Subject: Re: [Jprogramming] weird = failure > > Any hope that feature would be changed?-- I'm guessing > shapes have something to do with this phenomenon. > Perhaps more consistency in how built in operations > return in terms of shapes in boxes?-- and that these > be more compatible with the character type? > > Here's another. I do get to a solution at the end, > but it seems messier than it should be > ('(';,')') ([ =/ ]) ;: '( =. ()=.)' > 0 0 0 0 0 0 > 0 0 0 1 0 1 > > The first line should have matches too. Combinations > of , and no leading , didn't seem to work. > > >$ each (<,')') > 1 > >$ each (<')') > (no output-- no shape?) > > ((<,'('),(<,')')) =/ ;: '( =. ()=.)' > 1 0 1 0 0 0 > 0 0 0 1 0 1 > > The hope is that this utility verb would be able to > work accross boxed and unboxed contexts (more easily). > tokensIn=: <"1@:I.@:([ =/ ]) > > --- Roger Hui <[EMAIL PROTECTED]> wrote: > > > (<')') = <,')' > > 0 > > (<,')') = ;: '=. ( ()=. )' > > 0 0 0 1 0 1 > > > > > > > > ----- Original Message ----- > > From: "p j" <[EMAIL PROTECTED]> > > To: "Programming forum" <[email protected]> > > Sent: Tuesday, March 28, 2006 5:18 PM > > Subject: [Jprogramming] weird = failure > > > > (<')') = ;: '=. ( ()=. )' > > 0 0 0 0 0 0 > > > > >#each ;: '=. ( ()=. )' > > 2 1 1 1 2 1 > > > > I would expect 2 matches (1s) from the first line. > > > > (<')') = (<')') > > 1 > > > > > > > ---------------------------------------------------------------------- > > For information about J forums see > > http://www.jsoftware.com/forums.htm > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.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
