Calls a function once for each element in range in an array.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The array to whose elements to apply the function.
The range of values within
theto which to apply the
applierfunction. The range must not exceed the bounds of
the. The range may be empty (length
The callback function to call once for each value in the given range in
the. If there are values in the range that the
applierfunction does not expect or cannot properly apply to, the behavior is undefined.
A pointer-sized program-defined value, which is passed as the second argument to the
applierfunction, but is otherwise unused by this function. If the context is not what is expected by the applier function, the behavior is undefined.
While this function iterates over a mutable collection, it is unsafe for the
applier function to change the contents of the collection.