Amelia Stein wrote:
Could you just explain what these two lines are actually doing:
guidance 1!:2 (2)
it is intended to write
guidance 1!:2 2
but this is unacceptable because the 2 2 will be parsed as a single array like
guidance 1!:(2 2)
thus it needs a way telling J to separate the two 2 2, like
guidance 1!:2 (2)
guidance (1!:2) 2
guidance 1!:(2) 2
guidance 1!:2 [ 2
guidance 1!:2 ] 2
or use bond
1!:2&2 guidance
guidance&(1!:2) 2
but not (guidance&1!:2) 2 or guidance&1!:2 (2)
likewise, be careful when using rank conjuction,
write foo"(0) 2 3 4 instead of foo"0 2 3 4
--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm