chickadee » generalized-arrays » array-read

array-read #!optional portprocedure

Reads an array (similar to read) from the provided port, or (current-input-port) if port is not specified. The array is read in using the optional reader syntax provided with this library:

 
;; #a for array
;; 2 for rank 2
;; v for vector-storage-class (short-id of the storage-class)
#a2v((1 2 3)
     (4 5 6)
     (7 8 9))

Note that if the storage class is unknown (unknown short-id) then the procedure will default to reading in the array with a vector-storage-class.