Hashable

catdef.spad line 1435 [edit on github]

All domains for which we can compute hash function compatible with equality.

= : (%, %) -> Boolean
from BasicType
hash : % -> SingleInteger

hash(s) calculates a hash code for s.

hashUpdate! : (HashState, %) -> HashState

hashUpdate!(hs, s) computes new HashState from old and s used for incremental computation of hash values. hashUpdate! might destructively work on its first argument.

~= : (%, %) -> Boolean
from BasicType

BasicType