Post by Jens Kallup
1. How can I define/declare it ?
2. How can I add values into the grid ?
- I have
Point at (y=4; x= 5), and a
How can I insert these points to the grid,
when the initial grid Points have value 0?
Why not use a 2D array? You can then use whatever you like to represent
a grid point and a NIL value will represent an empty point. I assume
that you are asking your question in the context of the Lisp programming
language: most Lisp implementations provide arrays. If your grid is
large and is only sparsely occupied, you can use a hash array: the key
is a list such as (x y) and element values are whatever you like. Most
Lisp implementations provide hash arrays. Consulate the documentation of
whatever system you are using for details.