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.
- 参数:
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.
- 返回:
A new Set object containing the elements from the input Python set.
- 返回类型:
- to_set()#
Converts the Set to a Python set.
- 返回:
A Python set containing the elements of this Set. Each element in the returned set is a Constant object.
- 返回类型:
set