Contents

xpc_array_apply(_:_:)

Invokes the specified block for every value in the array.

Declaration

func xpc_array_apply(_ xarray: xpc_object_t, _ applier: (Int, xpc_object_t) -> Bool) -> Bool

Parameters

  • xarray:

    The array object which is to be examined.

  • applier:

    The block which this function applies to every element in the array.

Return Value

A Boolean indicating whether iteration of the array completed successfully. Iteration will only fail if the applier block returns false.

Discussion

You should not modify an array’s contents during iteration. The array indexes are iterated in order.

See Also

Array objects