hashcons
HashCons
¶
Source code in src/finch/symbolic/hashcons.py
canonicalize(a)
staticmethod
¶
Canonicalize an instance of this class into a (type, hashable) pair.
Generic version provided, but one can override for speed.
Source code in src/finch/symbolic/hashcons.py
hash_key(*args)
classmethod
¶
The hash key for this class, when it is constructed with *args.
Generic version provided, but one can specialize for speed.