Bug in lookup

Notices and updates
Locked
Jeff
Posts: 604
Joined: Sat Apr 07, 2007 2:23 pm
Location: Ohio
Contact:

Bug in lookup

Post by Jeff »

When an assoc list has no value for an element:

Code: Select all

(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...

Artful code

Locked