Sorting & Searching
Index
<<
>>
Sorting is faster than grading.
Exploit small range integers.
x⍳x
is useful and (will be) optimized.
x∘⍳
and
x∘{(↓⍺)⍳↓⍵}
are really good,
esp. for small right arguments.
Use
⎕ct←0
and
⎕dct←0
if possible.
Beware
O(n*2)
cases.