Set Utilities¶
The rite.collections.set subpackage provides helpers and higher-level operations for working with sets and related data structures.
Set Operations Module¶
Utilities for set operations and transformations.
Functions¶
- set_union: Union of multiple sets.
- set_intersection: Intersection of multiple sets.
- set_difference: Difference of sets.
- set_symmetric_difference: Symmetric difference of two sets.
Examples¶
from rite.collections.set import set_union set_union({1, 2}, {2, 3}, {3, 4})
Functions¶
set_difference(first: set[T], *others: set[T]) -> set[T]
¶
set_intersection(*sets: set[T]) -> set[T]
¶
set_symmetric_difference(first: set[T], second: set[T]) -> set[T]
¶
set_union(*sets: set[T]) -> set[T]
¶
options: show_root_heading: true show_source: false heading_level: 2