summaryrefslogtreecommitdiffstats
path: root/array.scm
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:26 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:26 -0800
commitf24b9140d6f74804d5599ec225717d38ca443813 (patch)
tree0da952f1a5a7c0eacfc05c296766523e32c05fe2 /array.scm
parent8ffbc2df0fde83082610149d24e594c1cd879f4a (diff)
downloadslib-f24b9140d6f74804d5599ec225717d38ca443813.tar.gz
slib-f24b9140d6f74804d5599ec225717d38ca443813.zip
Import Upstream version 2c0upstream/2c0
Diffstat (limited to 'array.scm')
-rw-r--r--array.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.scm b/array.scm
index 3eecb7a..08b8114 100644
--- a/array.scm
+++ b/array.scm
@@ -48,7 +48,7 @@
(if (array? obj) (length (array-shape obj)) 0))
(define (array-dimensions ra)
- (map (lambda (ind) (if (zero? (car ind)) (cadr ind) ind))
+ (map (lambda (ind) (if (zero? (car ind)) (+ 1 (cadr ind)) ind))
(array-shape ra)))
(define array:construct