added 'hash' for set[T]'
This commit is contained in:
parent
3ee25170c3
commit
f862e80be9
1 changed files with 4 additions and 0 deletions
|
|
@ -129,3 +129,7 @@ proc hash*(x: float): THash {.inline.} =
|
|||
proc hash*[A](x: openArray[A]): THash =
|
||||
for it in items(x): result = result !& hash(it)
|
||||
result = !$result
|
||||
|
||||
proc hash*[A](x: set[A]): THash =
|
||||
for it in items(x): result = result !& hash(it)
|
||||
result = !$result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue