count(for:)
Returns the count associated with a given object in the set.
Declaration
func count(for object: Any) -> IntParameters
- object:
The object for which to return the count.
Return Value
The count associated with object in the set, which can be thought of as the number of occurrences of object present in the set.