{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lab15 - That is(accounting?y would match(accounting...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 CS 61AWeek 15 Solutions LAB Err:510 4.55 (supervisor ?x (Bitdiddle Ben)) (job ?x (accounting . ?y)) (address ?x (Slumerville . ?y)) The dots are needed because (accounting ?y), for example, would match only entries in which there was a single element after the word "accounting."
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: That is, (accounting ?y) would match (accounting scrivener) but not (accounting chief accountant). 4.62 The base case here involves a 1-element list, not the empty list. (rule (last-pair (?x) (?x))) (rule (last-pair (?y . ?z) ?x) (last-pair ?z ?x))...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online