var-to-tree

0 views
Skip to first unread message

Sandip Ray

unread,
Nov 3, 2008, 12:35:14 PM11/3/08
to utexas-cs389r-fall2008
Hi,

Here's a message from Warren, clarifying the confusion some of you had
regarding the definition of var-to-tree. I'm forwarding this, since
he was having trouble posting this to the class newsgroup.

Thanks,

-- Sandip


From hunt Mon Nov 3 11:02:34 -0600 2008
From: "Warren A. Hunt Jr." <hu...@cs.utexas.edu>
To: utexas-cs38...@googlegroups.com
Subject: VAR-TO-TREE

Hi everyone,

It appears that I left out the definition of
VAR-TO-TREE from the class notes.

(defn var-to-tree (var vars)
(cond ((atom vars) nil)
((equal var (car vars))
(hons t nil))
(t (let ((tree (var-to-tree var (cdr vars))))
(hons tree tree)))))

Cheers,

Warren

Reply all
Reply to author
Forward
0 new messages