"Cut" (;.) applies the left verb - "convert string to number" (0&".) - to the right noun - the result of "stdin '' " - according to the value of the fret - in this case "_2" means to use the last character in the (vector) noun as the separator = the points at which we cut apart the vector into pieces to feed to the verb.
The example you give parses this way: (0&".) (;._2) (stdin '') E.G. - using a character vector in place of " stdin '' " - 0&".;._2 '1$2$3$' 1 2 3 0&".;._2 '11x22x33x' 11 22 33 0&".;._2 '1.1 -2.2 3.3 ' 1.1 _2.2 3.3 On 5/21/07, Terrence Brannon <[EMAIL PROTECTED]> wrote:
On 5/21/07, Joey K Tuttle <[EMAIL PROTECTED]> wrote: > $ cat cs.ijs > echo +/ 0&". ;._2 stdin'' can you explain this to me? I know a good amount of it: 0&". you are creating a monadic verb which will convert its argument to a number +/ you are summing a list of numbers ;. _2 stdin '' NB. has me confused -- is '' 2 single quotes or a single double quote -- i dont see how ;. _2 stdin plays together -- I dont understand ;. yet ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
-- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
