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) -> BoolParameters
- 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
XPCArrayxpc_array_create(_:_:)xpc_array_create_empty()xpc_array_create_connection(_:_:)xpc_array_set_value(_:_:_:)xpc_array_get_value(_:_:)xpc_array_append_value(_:_:)xpc_array_get_count(_:)xpc_array_dup_fd(_:_:)xpc_array_get_array(_:_:)xpc_array_get_bool(_:_:)xpc_array_get_data(_:_:_:)xpc_array_get_date(_:_:)xpc_array_get_dictionary(_:_:)xpc_array_get_double(_:_:)