diff options
Diffstat (limited to 'array.scm')
-rwxr-xr-x[-rw-r--r--] | array.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/array.scm b/array.scm index 4cf93b3..d0d3b22 100644..100755 --- a/array.scm +++ b/array.scm @@ -21,6 +21,7 @@ ;;@ftindex array (require 'record) +(require 'multiarg-apply) (define array:rtd (make-record-type "array" @@ -167,7 +168,8 @@ (let ((initializer (if (zero? (apply * pdims)) '() (list - (apply array-ref prototype + (apply array-ref + prototype (map (lambda (x) 0) pdims)))))) (cond ((and onedim? (string? prot)) (apply make-string (car dimensions) initializer)) |