listlist ref - part-cw/lambdanative GitHub Wiki
#(listlist-ref m col row) listlist-ref obtains a value from a matrix (list of lists).
Parameter | Description |
---|---|
m | Matrix (list of lists) |
row | Row number (0..n-1) |
col | Column number (0..n-1) |
Example
Example 1: Make a matrix, obtain a value, change a value and look at the result
> (define mat '((1 2 3) (4 5 6)))
> (listlist-ref mat 1 1)
5
> (listlist-set! mat 1 1 88)
((1 2 3) (4 88 6))