Set#
- class swordfish._swordfishcpp.Set#
Represents a container with no duplicate values.
- classmethod from_set(data, type=None)#
Constructs a Set object from a Python set.
- Parameters:
data (set) – A Python set containing the elements to be included in the new Set.
type (DataType, optional) – An enumeration value from the DataType enum, specifying the target data type for the Set elements. If None, the type will be inferred from the input set’s elements. Defaults to None.
- Returns:
A new Set object containing the elements from the input Python set.
- Return type:
- to_set()#
Converts the Set to a Python set.
- Returns:
A Python set containing the elements of this Set. Each element in the returned set is a Constant object.
- Return type:
set