I happened to be reading

    H. Frets and Scripts
    http://www.jsoftware.com/help/dictionary/dicth.htm

and was trying to work out the example

       s=: 0 : 0
    y*%:y
    :
    x*!y
    )

       a. i. s                    The character with index 10 marks the end of 
each line
    121 46 42 37 58 121 46 10 58 10 120 46 42 33 121 46 10

when I was stumped trying find the four operators between two "y"s (The ASCII "121") in the monadic part of the script.  (I'm not so fluent in the non-alphanumeric parts of the ASCII 
table.)  The answer seems to be that rather than just a "y", "121 46" is a representation of "y.", the former name of "y".  (See 9!:48 and 9!:49.[1])  Similarly, 
"x" in the example is represented by "120 46" (for "x.").  I wonder if someone changed all occurrences of "y." to "y" and "x." to "x", but 
in this case forgot to rerun the example to regenerate the document.

Running

       9!:14 ''
    j701/2011-01-10/11:25 build: Feb  6 2011 16:16:29

with

       9!:48 ''
    0

Copying the example, I see

       a. i. s
    121 42 37 58 121 10 58 10 120 42 33 121 10

where "y" is represented by a simple "121" without the trailing "46".

                        ... peter

[1] http://www.jsoftware.com/help/dictionary/dx009.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to