aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-13 20:27:09 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-13 20:27:09 -0400
commit12719748b63c5c6eb073b8117d49fb1107ee59cb (patch)
tree4d4b2b3b8837f5d70685a3710504b1586b80264d /src
parenta011f2c2b4f9dec00b4fc99e163822d170bc806a (diff)
Don't compare with internal Constant (˙) in IsConstant
Diffstat (limited to 'src')
-rw-r--r--src/r.bqn5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/r.bqn b/src/r.bqn
index 65cf5bca..7123c906 100644
--- a/src/r.bqn
+++ b/src/r.bqn
@@ -47,7 +47,8 @@ _qSearch ← {+´·×`𝕗(1-=)⌜<}
_glyphLookup_ ← {
{PrimInd𝕩} ⊑ ((𝕘⊑˜𝕗_qSearch)⌜glyphs)˙
}
-IsJoin ← (glyphs _qSearch'∾') = {PrimInd𝕩}
+_isGlyph ← { (glyphs _qSearch 𝕗) = {PrimInd𝕩} }
+IsJoin ← '∾'_isGlyph
Cell←{(𝕨⊸+⊑𝕩˙)⌜↕(≠𝕩)-𝕨}⟜≢
@@ -791,7 +792,7 @@ Mod1Inverse ← INF˙ _lookup_ ⟨
⟩ {
0⊸⊑ {𝕏𝕨}⟜𝔽 1⊸⊑
}
-IsConstant ← (3≤Type)◶⟨1 ⋄ 4‿˙ ≡ 0‿¯1⊏{Decompose𝕩}⟩
+IsConstant ← (3≤Type)◶⟨1 ⋄ ∧´ ⟨4⊸≡,'˙'_isGlyph⟩ {𝕎𝕩}¨ 0‿¯1⊏{Decompose𝕩}⟩
Mod2Inverse ← INF˙ _lookup_ ⟨
'∘', AtopInverse
'○', {Fi←𝕎⁼⋄𝕏⁼ Fi⊘(𝕏⊸Fi)}