> Or maybe using a : or something to separate rows for 2D arrays? > (array 1 2 : 3 4) > > (array 1 0 0 0 0 0 > : 0 1 0 0 0 0 > : 0 0 1 0 0 0 > : 0 0 0 1 0 0 > : 0 0 0 0 1 0 > : 0 0 0 0 0 1) > > What about something like:
(array #:cols 6
1 0 0 0 0 0
0 1 0 0 0 0
0 0 1 0 0 0
0 0 0 1 0 0
0 0 0 0 1 0
0 0 0 0 0 1)
where an extra #:cols argument lets the system know now many columns there
are per row?
____________________ Racket Users list: http://lists.racket-lang.org/users

