Executes a given closure using each object in the array with the specified options.
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The options for the enumeration. For possible values, see
A closure to execute for each object in the array. The closure takes three arguments:
The index of the object in the array.
A reference to a Boolean value, which the closure can set to
truein order to stop further enumeration of the array. If a closure stops further enumeration, that closure continues to run until it’s finished. When the
concurrentenumeration option is specified, enumeration stops after all of the currently running closures finish.