Documentation Language: Swift

Method

compactMap(_:)

Inherited from Sequence.compactMap(_:).

func compactMap<ElementOfResult>(_ transform: (Self.Element) throws -> ElementOfResult?) rethrows -> [ElementOfResult]