diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-13 21:39:24 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-13 21:39:24 -0400 |
| commit | 4d98b94d4e4112644f2b668ad1aa159fb86aa275 (patch) | |
| tree | 139e75f1698957bbef9aa1850426bd9bfe364044 | |
| parent | 7df1943b0f75b1a92791109049bed9e15b5bb1f0 (diff) | |
dzaima/BQN now supports TAO comparison
| -rwxr-xr-x | spec/dzref | 18 |
1 files changed, 4 insertions, 14 deletions
@@ -1,10 +1,6 @@ #!/usr/bin/env dbqn impl ← " -∧ ← × -∨ ← (+-×) - - #⌜ # LAYER 3: Remove other limits # Now all implementations are full but ↕ is monadic only @@ -154,10 +150,6 @@ Cmp ← ∨○IsArray◶{ # No arrays }𝕩 } -_grade←{ - ! 1≤≠≢𝕩 - i⊐˜+´˘((2⥊≠𝕩)⥊𝔽⎉∞‿¯1⎉¯1‿∞˜𝕩)(⌈⟜0+=⟜0⊸×)>⌜˜i←↕≠𝕩 -} _bins←{ c←1-˜≠≢𝕨 ! 0≤c @@ -169,17 +161,15 @@ _bins←{ OccurrenceCount ← ⊐˜(⊢-⊏)⍋∘⍋ ProgressiveIndexOf ← {𝕨⊐○(≍˘⟜OccurrenceCount𝕨⊸⊐)𝕩} -⍋ ← Cmp _grade ⊘ ( Cmp _bins) -⍒ ← -∘Cmp _grade ⊘ (-∘Cmp _bins) -∧ ↩ ⍋⊸⊏ ⊘ ∧ -∨ ↩ ⍒⊸⊏ ⊘ ∨ +⍋ ↩ ⍋ ⊘ ( Cmp _bins) +⍒ ↩ ⍒ ⊘ (-∘Cmp _bins) ⊒ ← OccurrenceCount⊘ ProgressiveIndexOf " X←Raw←{≤4} { chrs←⟨ - "!∧∨∾↑↕⌽⍉⍋⍒⊐⊒∊⍷⊔" + "!∾↑↕⌽⍉⍋⍒⊐⊒∊⍷⊔" "" "⚇" ⟩ @@ -208,7 +198,7 @@ X←Raw←{≤4} ⍎"Type ← ⟨⟩⥊0⊸⥊" '!' Mod "{𝕩 ⋄ ≤1}⍟¬" - Mod⟜⥊¨ "↕∾⌽⊐" + Mod⟜⥊¨ "↕∾⌽⊐⍋⍒" # checks if line is a builtin redefinition |
