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 d166d2c commit 08c7f9dCopy full SHA for 08c7f9d
base/sort.jl
@@ -1722,7 +1722,7 @@ sort(v::AbstractVector; kws...) = sort!(copymutable(v); kws...)
1722
## partialsortperm: the permutation to sort the first k elements of an array ##
1723
1724
"""
1725
- partialsortperm(v, k; by=ientity, lt=isless, rev=false)
+ partialsortperm(v, k; by=identity, lt=isless, rev=false)
1726
1727
Return a partial permutation `I` of the vector `v`, so that `v[I]` returns values of a fully
1728
sorted version of `v` at index `k`. If `k` is a range, a vector of indices is returned; if
0 commit comments