Address Andreas' complaint about code duplication.

This commit is contained in:
Charles Blake
2015-02-07 13:13:03 -05:00
parent 11e7c4960e
commit 1f3ce26421

View File

@@ -246,8 +246,9 @@ proc incl*[A](s: var HashSet[A], other: HashSet[A]) =
for item in other: incl(s, item)
template doWhile(a: expr, b: stmt): stmt =
b
while a: b
while true:
b
if not a: break
proc excl*[A](s: var HashSet[A], key: A) =
## Excludes `key` from the set `s`.