Change hash[T](seq[A]) to take varargs[A]

This commit is contained in:
Billingsly Wetherfordshire
2013-05-04 04:39:21 -05:00
parent 6aabf9b7dd
commit e662c973ef

View File

@@ -126,6 +126,6 @@ proc hash*(x: float): THash {.inline.} =
var y = x + 1.0
result = cast[ptr THash](addr(y))[]
proc hash*[A](x: seq[A]): THash =
proc hash*[A](x: varargs[A]): THash =
for it in items(x): result = result !& hash(it)
result = !$result