set and its methods.
set type
set[T] is still for system.set[T], with its restriction of only allowing small ordinal as elements. PySet[T] is used to minic Python's.
Literal
Something like {1,2} shall be rewritten as pyset([1,2]), please note either pyset((1,2)) or pyset({1,2}) doesn't mean the same.
Procs
proc `-`[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]
- Source Edit
proc `-`[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]
- Source Edit
proc difference[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self
- Source Edit
proc difference[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto; x: varargs[S]): Self
- Source Edit
proc difference[H](self, o: PySet[H]): PySet[H]
- Source Edit
proc difference[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]
- Source Edit
proc difference[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]
- Source Edit
proc difference_update[H; I: Iterable[H]](self: var SomePySet[H]; i: I)
- Source Edit
proc frozenset[H](): PyFrozenSet[H]
- Source Edit
proc frozenset[H](arr: openArray[H]): PyFrozenSet[H]
- Source Edit
proc frozenset[H](it: Iterable[H]): PyFrozenSet[H]
- Source Edit
proc frozenset[H](s: HashSet[H]): PyFrozenSet[H]
- Source Edit
proc frozenset[H](s: SomePySet[H]): PyFrozenSet[H]
- Source Edit
proc intersection[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self
- Source Edit
proc intersection[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto; x: varargs[S]): Self
- Source Edit
proc intersection[H](self, o: PySet[H]): PySet[H]
- Source Edit
proc intersection[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]
- Source Edit
proc intersection[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]
- Source Edit
proc intersection_update[H; I: Iterable[H]](self: var SomePySet[H]; i: I)
- Source Edit
func isdisjoint[H, S](self: SomePySet[H]; s: S): bool
- Source Edit
proc issuperset[H, S](self, o: SomePySet[H]; s: S): bool
- Source Edit
proc symmetric_difference[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self
- Source Edit
proc symmetric_difference[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto; x: varargs[S]): Self
- Source Edit
proc symmetric_difference[H](self, o: PySet[H]): PySet[H]
- Source Edit
proc symmetric_difference[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[ H]
- Source Edit
proc symmetric_difference[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]
- Source Edit
proc union[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto; x: varargs[S]): Self
- Source Edit
proc union[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]
- Source Edit
proc union[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]
- Source Edit