Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
glogla
on May 6, 2012
|
parent
|
context
|
favorite
| on:
Interviews Can Be a Terrible Way to Identify Good ...
The problem is, that
(equal 1 1) -> t (equal '(1 2) '(1 2)) -> t (eq 1 1) -> t (eq '(1 2) '(1 2)) -> nil
because eq tests for the same symbol, while equal test for the same list. Member uses eq, not equal.
eadvgf
on May 6, 2012
|
next
[–]
If we are talking Common Lisp, the default test is actually EQL. ((eq 1 1) is not necessarily T).
wccrawford
on May 6, 2012
|
prev
[–]
Ah, I see. Thanks.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: