Discussion:
Map doesn't work with n lists
Cinolt
2013-03-02 14:24:29 UTC
Permalink
R5RS specifies that map work with an arbitrary amount of lists, "(map proc
list1 list2 ...)" however I get an error when I try to evaluate:

(map + '(1 2 3) '(1 2 3))

assertion-violation: wrong number of arguments [tail-call]
(#{procedure 8517 map} '(#{procedure 110 +} (1 2 3) (1 2 3)))
Michael Sperber
2013-03-03 14:52:36 UTC
Permalink
Post by Cinolt
R5RS specifies that map work with an arbitrary amount of lists, "(map proc
(map + '(1 2 3) '(1 2 3))
assertion-violation: wrong number of arguments [tail-call]
(#{procedure 8517 map} '(#{procedure 110 +} (1 2 3) (1 2 3)))
I don't know exactly what you're looking at, but Scheme 48, in all
versions I've had running, says something like this:

Welcome to Scheme 48 1.9 (made by sperber on 2013-02-14)
See http://s48.org/ for more information.
Please report bugs to scheme-48-***@s48.org.
Get more information at http://www.s48.org/.
Type ,? (comma question-mark) for help.
Post by Cinolt
(map + '(1 2 3) '(1 2 3))
(2 4 6)
--
Regards,
Mike
Loading...