You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree. The "correction" listed in the errata is wrong, the original text is right.
The result of evaluating map0-n here is a list of lists, the length of which has to match the arity of the lambda passed to mapc. (1- (length parms)) is the right argument for that.
The erroneous correction results in a "called with invalid number of arguments" error.
on-lisp/src/chapter-11.lisp
Line 159 in b13e8b6
As macro
do-tuples/o
describe in chapter 11, define like bellow:should works like following:
However, in expression
(- (length source) (length parms))
,(length source)
will always eval to 2 (because of quote expression ),What's worse, the number of list value return by
is not equal to number of parms(which is required by operator
mapc
)I foud the origin
(1- (length parms))
is right. May I miss somthing?The text was updated successfully, but these errors were encountered: