No, the most efficient would probably be a loop.
sostock
33
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Meaning of `isless`, `<`, `cmp`, `isequal`, `==`, total order, partial order, unordered | 24 | 2476 | January 7, 2018 | |
| Sortperm with keyword lt = !isless throws BoundsError | 9 | 591 | January 8, 2023 | |
| Behavior of == when isless or < is defined | 22 | 2290 | April 4, 2018 | |
| What should `issorted` return when an order isn't defined for the elements, but a comparison works? | 4 | 276 | July 10, 2023 | |
| Why is there no isless(::Int64, ::UnitRange{Int64})? | 45 | 1255 | April 9, 2025 |