Re: [Jprogramming] formatting a string

2009-03-31 Thread M. Schmidt-Gröttrup
The evaluation is ". "0 (":123). ": 123 is the string '123' Then execute ". is applied, with rank zero "0 so ". is applied to each of the elements of the strings '123'. The result is the 3-element vector of numbers 1 2 3, no longer a string. To see this put $ before the expression. " and ".

Re: [Jprogramming] formatting a string

2009-03-31 Thread Jean-baptiste Vincent
OK, now I see. I was confused with the definition of the rank. Thanks a lot ! 2009/3/31 Matthew Brand > ": 123 converts the number 123 to the string '123'. > > ". '123' converts the string '123' to the number 123. > > ". "0 inputs each item of the string

Re: [Jprogramming] formatting a string

2009-03-31 Thread Matthew Brand
": 123 converts the number 123 to the string '123'. ". '123' converts the string '123' to the number 123. ". "0 inputs each item of the string '123' in turn to ". such that "."0 '123' results in the three numbers 1, 2 and 3. http://www.jsoftware.com/help/dictionary/d600n.htm On Tue, Mar 31, 20

[Jprogramming] formatting a string

2009-03-31 Thread Jean-baptiste Vincent
Dear forum users, I am currently learning J and I don't understand the following instruction: ". "0":123 output: 1 2 3 My problem is with the formatting "0": If it does what I think (converting number to string, with an empty space between the digits), why doesn't it work in the following case: