aboutsummaryrefslogtreecommitdiff
path: root/module/calp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-20 22:06:44 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-20 22:06:44 +0100
commitf8dd3392021754225dae6925d0931ff08d06dd00 (patch)
tree49ffe6fa856d25255444148a85df8016317f9e31 /module/calp
parentRemove re-export-modules (diff)
downloadcalp-f8dd3392021754225dae6925d0931ff08d06dd00.tar.gz
calp-f8dd3392021754225dae6925d0931ff08d06dd00.tar.xz
Remove procedure map-each
Was only used once, and wasn't even optimized.
Diffstat (limited to 'module/calp')
-rw-r--r--module/calp/util.scm9
1 files changed, 0 insertions, 9 deletions
diff --git a/module/calp/util.scm b/module/calp/util.scm
index 1f423756..044e4a95 100644
--- a/module/calp/util.scm
+++ b/module/calp/util.scm
@@ -297,19 +297,10 @@
(define-public (as-symb s)
(if (string? s) (string->symbol s) s))
-
-
(define-public (enumerate lst)
(zip (iota (length lst))
lst))
-;; Map with index
-(define-syntax-rule (map-each proc lst)
- (map (lambda (x i) (proc x i))
- lst (iota (length lst))))
-
-(export map-each)
-
;; Takes a procedure returning multiple values, and returns a function which
;; takes the same arguments as the original procedure, but only returns one of
;; the procedures. Which procedure can be sent as an additional parameter.