Re: [Chicken-users] for-each and mismatching list lengths

2011-09-20 Thread John Cowan
Christian Kellermann scripsit: > SRFI-1's map allows this so (use srfi-1) if you need it. For what it's worth, R7RS changes map and for-each to work like SRFI 1, so I would advise fixing this. -- John Cowan co...@ccil.org http://ccil.org/~cowan Assent may be registered by a signature, a hand

Re: [Chicken-users] for-each and mismatching list lengths

2011-09-20 Thread Christian Kellermann
* Sascha Ziemann [110920 12:17]: > This throws an error: > > (for-each (lambda (a b) > (printf "~s ~s\n" a b)) > (list 1 2 3 0) > (list 4 5 6)) > > But this does not: > > (for-each (lambda (a b) > (printf "~s ~s\n" a b)) > (list 1 2 3) >

[Chicken-users] for-each and mismatching list lengths

2011-09-20 Thread Sascha Ziemann
This throws an error: (for-each (lambda (a b) (printf "~s ~s\n" a b)) (list 1 2 3 0) (list 4 5 6)) But this does not: (for-each (lambda (a b) (printf "~s ~s\n" a b)) (list 1 2 3) (list 4 5 6 0)) Is this a bug or feature? Guile thr