diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:06:40 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:06:40 -0800 |
commit | a69c9fb665459e2bfdbda1bf80741a0af31a7faf (patch) | |
tree | f0bc974f8805049e6b9a4e6864886298fbaa05a4 /arraymap.scm | |
parent | 4684239efa63dc1b2c1cbe37ef7d3062029f5532 (diff) | |
download | slib-a69c9fb665459e2bfdbda1bf80741a0af31a7faf.tar.gz slib-a69c9fb665459e2bfdbda1bf80741a0af31a7faf.zip |
New upstream version 3b5upstream/3b5upstream
Diffstat (limited to 'arraymap.scm')
-rwxr-xr-x[-rw-r--r--] | arraymap.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arraymap.scm b/arraymap.scm index bfac855..e34eab6 100644..100755 --- a/arraymap.scm +++ b/arraymap.scm @@ -18,6 +18,7 @@ ;each case. (require 'array) +(require 'multiarg-apply) ;;@code{(require 'array-for-each)} ;;@ftindex array-for-each @@ -36,7 +37,8 @@ (is (cons (+ -1 (car rdims)) inds) (cons (+ -1 i) inds))) ((negative? i)) - (apply array-set! ra0 + (apply array-set! + ra0 (apply proc (map (lambda (ra) (apply array-ref ra is)) ras)) is)) (let ((crdims (cdr rdims))) |