We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
partialsortperm
1 parent 42b3134 commit 148330eCopy full SHA for 148330e
base/sort.jl
@@ -1732,7 +1732,7 @@ sort(v::AbstractVector; kws...) = sort!(copymutable(v); kws...)
1732
## partialsortperm: the permutation to sort the first k elements of an array ##
1733
1734
"""
1735
- partialsortperm(v, k; by=ientity, lt=isless, rev=false)
+ partialsortperm(v, k; by=identity, lt=isless, rev=false)
1736
1737
Return a partial permutation `I` of the vector `v`, so that `v[I]` returns values of a fully
1738
sorted version of `v` at index `k`. If `k` is a range, a vector of indices is returned; if
0 commit comments