Glad to be of help, but... "I was searching in vain for many days how to specify rank to the verb, defined in multiline manner."
Don't search for days. If you can't find something after a couple of hours then just ask on the forum and get yourself a cup of tea until someone answers - that is what it is here for. Good luck. 2009/9/1 Alexander Mikhailov <[email protected]>: > Date: Mon, 31 Aug 2009 13:49:24 +0100 > From: Matthew Brand <[email protected]> > Subject: Re: [Jprogramming] [Newbie question] Apply a monad to each > element of an array > To: Programming forum <[email protected]> > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=UTF-8 > > You can also define it to have that rank by default: > > asd =: 3 : 0 "0 > t =. 2*(1+y) > 1+t*(t-1)+i.4 > ) > > asd 1 2 3 > 13 17 21 25 > 31 37 43 49 > 57 65 73 81 > > If you want all the numbers in one list rather than three lines then do: > ,@:asd 1 2 3 > > ----- > > !!! > > I was searching in vain for many days how to specify rank to the verb, > defined in multiline manner. I've searched both through JforC and LJ > books; I was convinced that in-line setting of the rank is only possible > for on-line definitions. I've never seen even a hint to this. > > Thank you very much, Matthew. Henry Rich, please, please, include this > bit of information explicitly into the next revision of your great book. > Yes, I'm newbie, and yes, I don't fully understand the logic of verb > definitions, or I could've tried to guess that myself, but it's still a > pity I was in the dark for so long regarding this matter. > > Alex > > > > > -- The risk is socialized, the profit is privatized. -- The risk is socialized, the profit is privatized. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
