chickadee » generalized-arrays » array-tabulate

(array-tabulate storage-class proc shape [(mutable? #t)])procedure

Returns a newly allocated array (with a newly allocated storage object of the specified storage-class) that has the specified bounds. The values of the elements are computed by calling proc on every possible index of the array in lexicographic order. If mutable? is true, the array can mutate its storage object.