Comment on isSorted complexity. (#10686) [ci skip]
This commit is contained in:
parent
2610b16f6e
commit
51c43218c9
1 changed files with 1 additions and 1 deletions
|
|
@ -511,7 +511,7 @@ func isSorted*[T](a: openArray[T],
|
||||||
order = SortOrder.Ascending): bool =
|
order = SortOrder.Ascending): bool =
|
||||||
## Checks to see whether ``a`` is already sorted in ``order``
|
## Checks to see whether ``a`` is already sorted in ``order``
|
||||||
## using ``cmp`` for the comparison. Parameters identical
|
## using ``cmp`` for the comparison. Parameters identical
|
||||||
## to ``sort``.
|
## to ``sort``. Requires O(n) time.
|
||||||
##
|
##
|
||||||
## **See also:**
|
## **See also:**
|
||||||
## * `isSorted proc<#isSorted,openArray[T]>`_
|
## * `isSorted proc<#isSorted,openArray[T]>`_
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue