Instance Method

setValue(_:forKey:)

Invokes setValue:forKey: on each of the set’s members.

Declaration

func setValue(_ value: Any?, forKey key: String)

Parameters

value

The value for the property identified by key.

key

The name of one of the properties of the set's members.

See Also

Comparing Sets

func isSubset(of: Set<AnyHashable>) -> Bool

Returns a Boolean value that indicates whether every object in the receiving set is also present in another given set.

func intersects(Set<AnyHashable>) -> Bool

Returns a Boolean value that indicates whether at least one object in the receiving set is also present in another given set.

func isEqual(to: Set<AnyHashable>) -> Bool

Compares the receiving set to another set.

func value(forKey: String) -> Any

Return a set containing the results of invoking valueForKey: on each of the receiving set's members.