mapAnnotations(_:)

Returns an array containing the results of mapping the given closure over the sequence’s annotations.

Declaration

func mapAnnotations<Feature, Input, Output>(_ transform: (Input) throws -> Output) rethrows -> [AnnotatedFeature<Feature, Output>] where Self.Element == AnnotatedFeature<Feature, Input>