* arrays.scm, deprecated.scm (uniform-vector-fill!,
[bpt/guile.git] / ice-9 / boot-9.scm
index e5bdd67..d31c650 100644 (file)
 ;;; {Arrays}
 ;;;
 
-(if (provided? 'array)
-    (primitive-load-path "ice-9/arrays.scm"))
+(define (array-shape a)
+  (map (lambda (ind) (if (number? ind) (list 0 (+ -1 ind)) ind))
+       (array-dimensions a)))
 
 \f