diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-24 18:22:02 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-24 18:23:31 -0400 |
| commit | 09231a35b513400bfd0b4f04dd0aba3a96f21daa (patch) | |
| tree | 383f1085fe821ac288a0477db283e523a3a96c5f /src | |
| parent | 96f50367f934165b010156bec3fcec79afdacb86 (diff) | |
Use runtime Match instead of === to compare functions component-wise
Diffstat (limited to 'src')
| -rw-r--r-- | src/r.bqn | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -729,6 +729,19 @@ Identity ← {𝕏0} ("´: Identity not found"!0˙) _lookup_ ⟨ '>',0 , '≥',1 ⟩ +structPrimClass ← {(∾𝕩)_glyphLookup_((/∾≠)≠⌜𝕩)} ⥊⌜ ⟨ + '⊢'‿'⊣'‿'˜'‿'∘'‿'○'‿'⊸'‿'⟜'‿'⊘'‿'◶' + '='‿'≠'‿'≢' + '<' + '≍' + '↕'‿'/'‿'»'‿'«'‿'⊔' + '⥊'‿'↑'‿'↓'‿'⌽'‿'⍉'‿'⊏'‿'⊑' +# > +# ∾ +# ˘⎉¨⌜ +# ⚇ +⟩ + IA ← "⁼: Inverse failed"⊸! IX ← "⁼: Inverse does not exist"⊸! INF← "⁼: Inverse not found"!0˙ @@ -824,16 +837,3 @@ FuncInverse ← (⊑ ⊣◶⟨ ⟩ 1⊸↓) {Decompose𝕩} Inverse ← Type◶(3‿1‿2/{⊢⊣𝕩IX∘≡⊢}‿FuncInverse‿("Cannot invert modifier"!0˙)) ⁼ ↩ {𝕗 (≢∧INF˙⊸≢)◶0‿(5‿_inv_≢0‿¯2⊏Decompose∘⊢)◶⊢‿{𝕏_inv_(𝕎_invChk_𝕏)} Inverse 𝕗} - -structPrimClass ← {(∾𝕩)_glyphLookup_((/∾≠)≠¨𝕩)} ⥊¨ ⟨ - '⊢'‿'⊣'‿'˜'‿'∘'‿'○'‿'⊸'‿'⟜'‿'⊘'‿'◶' - '='‿'≠'‿'≢' - '<' - '≍' - '↕'‿'/'‿'»'‿'«'‿'⊔' - '⥊'‿'↑'‿'↓'‿'⌽'‿'⍉'‿'⊏'‿'⊑' -# > -# ∾ -# ˘⎉¨⌜ -# ⚇ -⟩ |
