Re: Map doesn't work with n lists
Michael Sperber <[email protected]> Sun, 03 Mar 2013 15:52:36 +0100
| Newsgroups | gmane.lisp.scheme.scheme48 |
|---|---|
| Message-ID | <[email protected]> |
Cinolt <[email protected]> writes: > 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))) 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 [email protected]. Get more information at http://www.s48.org/. Type ,? (comma question-mark) for help. > (map + '(1 2 3) '(1 2 3)) (2 4 6) -- Regards, Mike