Feedback But if it doesn't end with a nil... 

Forum: Com Sci 221, U Chicago, Autumn 2001, Old Classwork
Re: News Assignment #7 due Monday, 19 November (Mike O'Donnell)
Re: Question dynamic scope? and tree representation? (Terry (Sotiria) Lampoudi)
Date: 2001, Nov 18
From: Gregory Kettler <gckettle@cs.uchicago.edu>

Then how do I represent:
       /\
      a  b

If I understand correctly, there's no way to write that as a list, since when you call it a list you imply that its last cdr is nil. No nil, no list.

Some other ways of writing lists as trees probably include that one as a valid list, but I'm assuming (hoping?) we only have to deal with the traditional nil-terminated deals.


Messages

to: "But if it doesn't end with a nil..."