Given a pattern and an input, matching must:
Consider the following case:
Pattern: (- ?x (- ?y))The input matches the pattern; the bindings should be:Input: (- (sin theta) (- w))
( (?x . (sin theta)) (?y . w) )This format is an association list, or alist for short. The form ( x . y) , called a dotted pair, is produced by (cons x y) . (A dotted pair is just an ordinary pair. It may be printed with a dot because the cdr points to something other than another pair. Note that (?x . (sin theta)) will be printed as (?x sin theta).)
Contents    Page-10    Prev    Next    Page+10    Index