[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.6.1 Logic languages: set up

Set Up

Perform the weekly set up instructions for project 3, homework a.

What to hand in

A file answers.txt with answers to the following questions.

  1. What does this return: (match ’?x 1 nil)?
  2. The function data1 includes a predicate sameSex that matches to two persons. Except for gender, every other field has a suffix that is either "1" or "2". Does gender need a suffix? Why or why not?
  3. Why does the match function return two values?
  4. Give an example of the kind of structure that would satisfy var?.
  5. Give an example of the kind of structure that would not satisfy var?.
  6. Why does binding call itself recursively before it looks at the cdr of the current binding?

A revised form of 15.lisp with:


This document was generated on April 19, 2011 using texi2html 5.0.