Contents

enumerateObjects(_:)

Executes a given block using each object in the ordered set.

Declaration

func enumerateObjects(_ block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Void)

Parameters

  • block:

    The block to apply to elements in the ordered set.

    The block takes three arguments:

    idx

    The element in the set.

    idx

    The index of the item in the set.

    stop

    A reference to a Boolean value. The block can set the value to True to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this value to True within the block.

    The block returns a Boolean value that indicates whether obj passed the test.

See Also

Accessing Set Members