forEach(_:)
forEach(_:)
forEach(_:) Instance Method of XPCArray Calls the given closure with each element in the array in the same order as a for-in loop.
func forEach(_ body: (XPCArray.IndexValuePair) throws -> Void) rethrowsParameters
body
A closure that takes an element of the array as a parameter.
Discussion