Skip to content

Instantly share code, notes, and snippets.

@miyamuko
Created December 15, 2011 06:24
Show Gist options
  • Save miyamuko/1480046 to your computer and use it in GitHub Desktop.
Save miyamuko/1480046 to your computer and use it in GitHub Desktop.
equalp に hash-table を渡すと謎の多値が返ってくる #xyzzy
(equalp (alexandria:plist-hash-table '(:foo 1 :bar 2))
(alexandria:plist-hash-table '(:foo 1 :bar 2)))
t
t
(equalp (alexandria:plist-hash-table '(:foo 1 :bar 2))
(alexandria:plist-hash-table '(:foo 1)))
nil
(equalp (alexandria:plist-hash-table '(:foo 1 :bar 2))
(alexandria:plist-hash-table '(:bar 2 :foo 1)))
t
t
(equalp (alexandria:plist-hash-table '(:foo 1 :bar 2))
(alexandria:plist-hash-table '(:foo 1 :bar 3)))
nil
t
pred.cc 読んだけどよく分からなかった。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment