View this file with results and syntax highlighting here.
Del Stile (⍒)
⍒ 𝕩: Grade Down
Indices of 𝕩 that would sort its major cells in descending order.
a ← 1‿2‿3
⍒ a
(⍒a) ⊏ a
𝕨 ⍒ 𝕩: Bins Down
Binary search for each cell of 𝕩 in 𝕨, returning the number of major cells in 𝕨 greater than or equal to that cell.
𝕨 must be sorted in descending order.
7‿5‿4‿3 ⍒ 2
7‿5‿4‿3 ⍒ 2‿6
