This commit is contained in:
Araq
2014-11-14 02:40:55 +01:00
parent 981b24f916
commit 9e00d3aec2
3 changed files with 3 additions and 5 deletions

View File

@@ -842,9 +842,6 @@ proc `+` *[T](x, y: set[T]): set[T] {.magic: "PlusSet", noSideEffect.}
## This operator computes the union of two sets.
proc `-` *[T](x, y: set[T]): set[T] {.magic: "MinusSet", noSideEffect.}
## This operator computes the difference of two sets.
proc `-+-` *[T](x, y: set[T]): set[T] {.magic: "SymDiffSet", noSideEffect.}
## computes the symmetric set difference. This is the same as
## ``(A - B) + (B - A)``, but more efficient.
proc contains*[T](x: set[T], y: T): bool {.magic: "InSet", noSideEffect.}
## One should overload this proc if one wants to overload the ``in`` operator.