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

@@ -29,7 +29,6 @@ operation meaning
``e in A`` set membership (A contains element e)
``e notin A`` A does not contain element e
``contains(A, e)`` A contains element e
``A -+- B`` symmetric set difference (= (A - B) + (B - A))
``card(A)`` the cardinality of A (number of elements in A)
``incl(A, elem)`` same as ``A = A + {elem}``
``excl(A, elem)`` same as ``A = A - {elem}``

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.

View File

@@ -3,7 +3,7 @@ News
====
..
2014-10-21 Version 0.10.0 released
2014-10-21 Version 0.10.2 released
==================================
Changes affecting backwards compatibility
@@ -26,6 +26,8 @@ News
fails to match.
- The re module returns ``nil`` instead of ``""`` when an optional capture
fails to match.
- The "symmetric set difference" operator (``-+-``) never worked and has been
removed.
Language Additions
------------------