fix mapn error message

This commit is contained in:
Alex Shinn 2021-12-28 15:19:10 +09:00
parent 92499731bc
commit 9cd9ec1cda

View file

@ -70,7 +70,7 @@
(cons (apply proc (map1 car lol '())) res)) (cons (apply proc (map1 car lol '())) res))
(if (every (lambda (x) (if (null? x) #t (pair? x))) lol) (if (every (lambda (x) (if (null? x) #t (pair? x))) lol)
(reverse res) (reverse res)
(error "map: improper list" ls)))) (error "map: improper list in list" lol))))
(if (null? lol) (if (null? lol)
(map1 proc ls '()) (map1 proc ls '())
(mapn proc (cons ls lol) '()))) (mapn proc (cons ls lol) '())))