From e662c973efdc1c9bcab6543713a742e6f54b34d3 Mon Sep 17 00:00:00 2001 From: Billingsly Wetherfordshire Date: Sat, 4 May 2013 04:39:21 -0500 Subject: [PATCH] Change hash[T](seq[A]) to take varargs[A] --- lib/pure/hashes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/hashes.nim b/lib/pure/hashes.nim index 0e9e3600df..92f273b153 100644 --- a/lib/pure/hashes.nim +++ b/lib/pure/hashes.nim @@ -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