[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Comparing hash table objects
From: |
Ihor Radchenko |
Subject: |
Comparing hash table objects |
Date: |
Wed, 08 Jun 2022 16:41:47 +0800 |
Hello,
Is there any way to compare objects containing hash tables for equality?
I have a struct that is created like
(list 'type (make-hash-table))
With hash table later populated with some key:value pairs.
I expect two structs like the above to be comparable via equal:
(equal (list 'type (make-hash-table)) (list 'type (make-hash-table))) ;; => t
However, running the above code gives nil.
Is the above behavior intentional?
Best,
Ihor
- Comparing hash table objects,
Ihor Radchenko <=
- Re: Comparing hash table objects, Andreas Schwab, 2022/06/08
- Re: Comparing hash table objects, Ihor Radchenko, 2022/06/08
- Re: Comparing hash table objects, Richard Stallman, 2022/06/10
- Re: Comparing hash table objects, Ihor Radchenko, 2022/06/11
- Re: Comparing hash table objects, Stefan Monnier, 2022/06/11
- Re: Comparing hash table objects, Ihor Radchenko, 2022/06/12
- Re: Comparing hash table objects, Sam Steingold, 2022/06/12
- Re: Comparing hash table objects, Stefan Monnier, 2022/06/13
- Re: Comparing hash table objects, Sam Steingold, 2022/06/13