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 ". and ": are three different entities, no open quote error
occurs.
Reading J is different but enlightening.
Good luck,
Markus
Jean-baptiste Vincent schrieb:
> 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:
> ". "0":'abc'
>
> Can someone explain me what is my mistake ?
>
> Thanks !
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
>
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm