diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-27 13:27:46 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-27 13:27:46 -0400 |
| commit | 74b6f27be17afab842e173bfca9789e2a0cc3232 (patch) | |
| tree | eec9ffa7cf08966caf77df056648870e75d05a15 /src | |
| parent | a4db0473afa642b1e4085295a6e306198b3c6f5d (diff) | |
Use ⍋/⍒ instead of _grade_
Diffstat (limited to 'src')
| -rw-r--r-- | src/r.bqn | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -159,7 +159,6 @@ _grade_←{ }´(2⋆ni-1+⊢)⌜↕ni←⌈2 Log l+l=0 }⟩𝕩 } -_sort ← {(𝕗⊑⟨Cmp,Cmp˜⟩)_grade_𝕗 ⊸ ⊏} _binSearch ← { B ← 𝔽 { @@ -608,8 +607,8 @@ GroupGen←{ | ← (| ⊘ {𝕩-𝕨×⌊𝕩÷𝕨}) _perv ⌊ ↩ (⌊ ⊘ {(𝕨>𝕩)⊑𝕨‿𝕩}) _perv ⌈ ↩ (-∘⌊∘- ⊘ {(𝕨<𝕩)⊑𝕨‿𝕩}) _perv -∧ ← 0 _sort ⊘ (× _perv) -∨ ← 1 _sort ⊘ ((+-×) _perv) +∧ ← ⍋⊸⊏ ⊘ (× _perv) +∨ ← ⍒⊸⊏ ⊘ ((+-×) _perv) × ↩ (0⊸(<->) ⊘ ×) _perv < ↩ Box ⊘ ((1-≥) _perv) > ↩ Merge ⊘ ((1-≤) _perv) |
