[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

erratum: logic error on p.125



    Date: Thursday, 19 Sep 85 17:58:26 PDT
    From: S Sridhar <sridhar%tekchips%tektronix.csnet@CSNET-RELAY.ARPA>

    On p.125 about the middle of the page in the ribcage-lookup function
     in the scope of the second do:
  
      REPLACE (v (cdar r) (cdr v))) BY (v (cadar r) (cdr v)))
      [the cdar is replaced by cadar] 

I don't think so.  It appears to me that the example is correct.  Read
the text above the example carefully.  It says "...the cdr of each cons
is a list...".  That is, the elements of the top-level lists are conses,
not two-element lists.

There is, however, a picotypo in this example: the introductory text
says "...suppose that ENV holds a list of conses...", but the example
doesn't use the variable ENV anywhere.  (Do I get the "picky, picky"
award for submitting the most trivial erratum?)