Contents

map(_:)

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

Declaration

func map<ReturnType>(_ transform: (XPCDictionary.KeyValuePair) throws -> ReturnType) rethrows -> [ReturnType]

Parameters

  • transform:

    A mapping closure. transform accepts an element of this sequence as its parameter and returns a transformed value of the same or of a different type.

Return Value

An array containing the transformed elements of this sequence.