And this: hh =: 3 : '[: >: i. y' hh 3 : '[: >: i. y' hh 4 |domain error: hh | [:>:i.y
I think Brian's suggestion that you parenthesize the result of 13 : before applying arguments is the best way of removing your frustration. My point about parenthsizing [: > i. before applying arguments is specific to verbs defined by trains. --Kip On Monday, February 9, 2015, Linda Alvord <[email protected]> wrote: > How about this: > h=: 13 :'[:>:i.y' > h > [: [: [: >: i. > > [: [: [: >: i. 4 > |domain error: scriptd > | [:[: [:>:i.4 > > Linda > > > -----Original Message----- > From: [email protected] <javascript:;> > [mailto:[email protected] <javascript:;>] On > Behalf Of Brian Schott > Sent: Monday, February 9, 2015 10:00 AM > To: Programming forum > Subject: Re: [Jprogramming] Source of frustration > > Linda, > > If you are willing to put parentheses around your example verbs -- with the > data outside the parens, you will not get the domain error. > > On Mon, Feb 9, 2015 at 9:54 AM, Linda Alvord <[email protected] > <javascript:;>> > wrote: > > > Suppose: ff=: 13 :'>:i.y' > > ff > > >:@i. > > Then: > > >:@i.4 > > 1 2 3 4 > > Which is what you want, more than a domain error. > > > > Linda > > > > -- > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Sent from Gmail Mobile ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
