-
Union of two sets.
Declaration
Swift
public static func + (lhs: SetK<A>, rhs: SetK<A>) -> SetK<A>Parameters
lhsLeft hand side of the union.
rhsRight hand side of the union.
Return Value
A new set that includes all elements present in both sets.
-
Safe downcast.
Declaration
Swift
public static func fix(_ fa: SetKOf<A>) -> SetK<A>Parameters
faValue in the higher-kind form.
Return Value
Value cast to SetK.
-
Initializes a
SetKwith the elements of aSwift.Set.Declaration
Swift
public init(_ set: Set<A>)Parameters
setA set of elements to be wrapped in this
SetK. -
Initializes a
SetKfrom a variable number of elements.Declaration
Swift
public init(_ elements: A...)Parameters
elementsValues to be wrapped in this
SetK. -
Extracts a
Swift.Setfrom this wrapper.Declaration
Swift
public var asSet: Set<A> { get } -
Combines this set with another using the union of the underlying
Swift.Sets.Declaration
Swift
public func combineK(_ y: SetK<A>) -> SetK<A>Parameters
yA set
Return Value
A set containing the elements of the two sets.
-
Declaration
Swift
public func combine(_ other: SetK<A>) -> SetK<A>
-
Declaration
Swift
public static func empty() -> SetK<A>
Install in Dash
SetK Class Reference