Contents

count(for:)

Returns the count associated with a given object in the set.

Declaration

func count(for object: Any) -> Int

Parameters

  • 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.

See Also

Related Documentation

Examining a Counted Set