[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: can s-exprs represent a graph without eval?
From: "Christopher Dutchyn" <cdutchyn@cs.ubc.ca>
To: <[mailto:owner-ll1-discuss@ai.mit.edu]>
Cc: "Guy Steele - Sun Microsystems Labs" <Guy.Steele@sun.com>
Subject: RE: can s-exprs represent a graph without eval?
Date: Thu, 19 Jun 2003 13:36:14 -0700
Guy Steele wrote:
>> Consider this bit of code:
>> (mapcar #'+ x '#1=(1 -1))
>> If x is (1 4 7 10), the result will be (2 3 8 9).
Um, that can't be right - you never refer to #1#. I think you meant:
(mapcar #'+ '(1 4 7 10) '#1=(1 -1 . #1#))
Indeed! Thanks for correcting my braino.
--Guy Steele