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
CS 61A Week 15 Solutions LAB === 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

This note was uploaded on 05/12/2010 for the course CS 61A taught by Professor Harvey during the Spring '08 term at University of California, Berkeley.

Ask a homework question - tutors are online