mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
@@ -509,7 +509,7 @@ proc hashIgnoreCase*(sBuf: string, sPos, ePos: int): Hash =
|
||||
h = h !& ord(c)
|
||||
result = !$h
|
||||
|
||||
proc hash*[T: tuple | object | proc](x: T): Hash {.inline.} =
|
||||
proc hash*[T: tuple | object | proc](x: T): Hash =
|
||||
## Efficient `hash` overload.
|
||||
runnableExamples:
|
||||
# for `tuple|object`, `hash` must be defined for each component of `x`.
|
||||
|
||||
Reference in New Issue
Block a user