On Thu, Jan 22, 2009 at 9:40 PM, Hahn, Harvey <[email protected]> wrote:
>    maxrows=. 50
>    maxcolumns=. 50
>    chart=. (maxrows,maxcolumns) $ a:
>   r=. 37
>   c=. 0
>
> why does neither
>   chart=. 'X' (r,c) } chart
> nor
>   chart=. 'X' (<r,c) } chart
>
> work?

chart=: (<'X') (r,c)} chart
and
chart=: (<'X') (<r,c)} chart
both work

The problem was that chart was made up
of empty boxes, and 'X' is not boxed.

Also, I prefer using =: instead of =.
because then I can put all the statements
in a script and they will still do the same thing.

FYI,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to