Bug in lookup

Started by Jeff, July 28, 2008, 11:30:22 AM

Previous topic - Next topic

Jeff

When an assoc list has no value for an element:


(set 'lst '((a 1) (b 2) (c)))

...lookup returns the value of the key, rather than nil.  While this is not a strictly formed association list, it should still return nil, especially since the xml functions write lists that way.
Jeff

=====

Old programmers don\'t die. They just parse on...



http://artfulcode.net\">Artful code