Fixed TSet proc names to conform with set
This commit is contained in:
parent
84643abd3e
commit
ac3f872fa3
2 changed files with 14 additions and 14 deletions
|
|
@ -174,15 +174,15 @@ proc symmetricDifference*[A](s1, s2: TSet[A]): TSet[A] =
|
|||
for item in s2:
|
||||
if containsOrIncl(result, item): excl(result, item)
|
||||
|
||||
proc `or`*[A](s1, s2: TSet[A]): TSet[A] {.inline.} =
|
||||
proc `+`*[A](s1, s2: TSet[A]): TSet[A] {.inline.} =
|
||||
## alias for `union`
|
||||
result = union(s1, s2)
|
||||
|
||||
proc `and`*[A](s1, s2: TSet[A]): TSet[A] {.inline.} =
|
||||
proc `*`*[A](s1, s2: TSet[A]): TSet[A] {.inline.} =
|
||||
## alias for `intersection`
|
||||
result = intersection(s1, s2)
|
||||
|
||||
proc `xor`*[A](s1, s2: TSet[A]): TSet[A] {.inline.} =
|
||||
proc `-+-`*[A](s1, s2: TSet[A]): TSet[A] {.inline.} =
|
||||
## alias for `symmetricDifference`
|
||||
result = symmetricDifference(s1, s2)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue