Complexity
Add a Complexity callout to the Quick Help for a symbol using the Complexity delimiter. Multiple Complexity callouts appear in the description section in the same order as they do in the markup.
Use the callout to display the algorithmic complexity of a method or function.
Works with:
Playgrounds
✓ Symbol documentation
Syntax
* | + | - Complexity: descriptionoptional continuation of description
The description displayed in Quick Help for the complexity callout is created as described in Parameters Section.
Example
/**An example of using the complexity field- Complexity:The method demonstrates an inefficient way to sortusing an O(N\*N\*N) (order N-cubed) algorithm*/
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2017-06-05
