feat: add Hashable (Array α) instance

This commit is contained in:
Leonardo de Moura 2022-05-07 15:01:32 -07:00
parent b5bcf252ce
commit 73cb952275

View file

@ -30,6 +30,9 @@ instance [Hashable α] : Hashable (Option α) where
instance [Hashable α] : Hashable (List α) where
hash as := as.foldl (fun r a => mixHash r (hash a)) 7
instance [Hashable α] : Hashable (Array α) where
hash as := as.foldl (fun r a => mixHash r (hash a)) 7
instance : Hashable UInt8 where
hash n := n.toUInt64