(lookup nil x) -> 1st item?
Posted: Sat Jan 29, 2011 2:02 am
Try this:
Unless I'm missing something, shouldn't (lookup) return nil?
By the way, I got here because I'm actually doing:
And x can be nil.
Code: Select all
> (set 'tr '( (1 "foo") (2 "bar") (3 "baz")))
((1 "foo") (2 "bar") (3 "baz"))
> (lookup nil tr)
"foo"
By the way, I got here because I'm actually doing:
Code: Select all
(lookup x tr)