map, for-each

2010-08-26 Thread Eric J. Van der Velden
Hello, I don't understand what the manual says about when there are more then two arguments to map or for-each. With two arguments, the last one must be a list, so OK is (for-each display '(1 3)) But the following are ERR, (for-each display 1 3) (for-each display '(1 3) '(1 3)) Thanks, Eric

Re: map, for-each

2010-08-26 Thread Paul Emsley
On 26/08/10 12:17, Eric J. Van der Velden wrote: Hello, I don't understand what the manual says about when there are more then two arguments to map or for-each. With two arguments, the last one must be a list, so OK is (for-each display '(1 3)) But the following are ERR, (for-each display

Re: map, for-each

2010-08-26 Thread Thien-Thi Nguyen
() "Eric J. Van der Velden" () Thu, 26 Aug 2010 13:17:38 +0200 But the following are ERR, (for-each display 1 3) ; A (for-each display '(1 3) '(1 3)) ; B The arity of the proc (specifically, the "required" portion) must concord with the number of lists pa