Creates and returns a ordered set that contains a single given object.
SDKs
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
+ (instancetype)orderedSetWithObject:(Object Type)object;
Parameters
object
The object to add to the new set.
Return Value
A new ordered set containing object
.