Fixes collections/ttables.

This commit is contained in:
Dominik Picheta
2014-04-18 21:50:51 +01:00
parent 63d384d0cd
commit 00dc93b65b

View File

@@ -196,7 +196,7 @@ proc `==`*[A, B](s, t: TTable[A, B]): bool =
# to use the slow route here:
for key, val in s:
if not hasKey(t, key): return false
if mget(t, key) != val: return false
if t[key] != val: return false
return true
proc indexBy*[A, B, C](collection: A, index: proc(x: B): C): TTable[C, B] =