-3

https://i.stack.imgur.com/zuh4U.jpg

why is the hash table returning nil.Doesn't hashtables work for lists.

Sylwester
  • 47,942
  • 4
  • 47
  • 79
christoph
  • 132
  • 1
  • 3
  • 10

1 Answers1

0

The default hash-table uses eql for key comparison. You can choose between eq, eql, equal and equalp. For lists, you need equal or equalp. Look them up in the Hyperspec, as well as make-hash-table.

Svante
  • 50,694
  • 11
  • 78
  • 122