aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-01-13 13:49:53 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-01-13 13:49:53 -0500
commit56ee82215ef37406927bd9a232c2146a4b7d6581 (patch)
tree59465ab861c08d8ac537ba6c38f9422cbda14761 /src
parent477c1df9814722fd6dd94d0b8794a39ae99c4080 (diff)
Fix handling of unknown modifiers in structural Under
Diffstat (limited to 'src')
-rw-r--r--src/r.bqn3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/r.bqn b/src/r.bqn
index aa407a69..e58e2e36 100644
--- a/src/r.bqn
+++ b/src/r.bqn
@@ -210,6 +210,7 @@ _structural←{
Mon←{𝕏⊘E} ⋄ Dy←{E⊘𝕏}
_errIf←{⊢⊘×○(1-𝔽)◶⟨StructErr˙,𝕏⟩}
SE ← IsStructErr _errIf⍟(3≥Type)
+ NS ← IsStruct _errIf
StructPrim ← ⊢ {𝕏𝕨} StructPrimClass ⊑ ⟨
⊢ # ⊢⊣˜∘○⊸⟜⊘◶
Mon 1⊸Info # =≠≢
@@ -219,7 +220,7 @@ _structural←{
1⊸Depth # ⥊↑↓⌽⍉⊏⊑
# Mon 2⊸Depth # >
# Mon 2⊸Depth # ∾ # Dyad combines
- (3=Type)◶⟨E˙, IsStruct _errIf⟩
+ (Type-3˙)◶⟨NS, {m←𝕩⋄{NS(𝕗_m)˙0}}, {m←𝕩⋄{NS(𝕗_m_𝕘)˙0}}⟩
⟩˙
StructFn ← (0⊸⊑ 0⊸≤◶⟨3,2⊸≤◶⊢‿2⟩∘⊣◶⟨
SE · StructPrim 0⊑⊢ # 0 primitive