A Boolean value that indicates whether the set is empty.
SDK
- Xcode 10.0+
Framework
- Swift Standard Library
Declaration
var isEmpty: Bool { get }
A Boolean value that indicates whether the set is empty.
SDK
Framework
var isEmpty: Bool { get }
var count: IntThe number of elements in the set.
var capacity: IntThe total number of elements that the set can contain without allocating new storage.