compact() Removes NULL values from the receiver. Declarationfunc compact() See AlsoManaging the CollectioncountallObjectspointer(at:)addPointer(_:)removePointer(at:)insertPointer(_:at:)replacePointer(at:withPointer:)