diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-10-31 19:59:09 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-10-31 20:00:03 -0400 |
| commit | e8a14e107c4865d1d1f6cf4895c9e11015ed3503 (patch) | |
| tree | 82d70f6856177f784f6059f0dfbeef99438b21e0 /vm.bqn | |
| parent | ae3be51b576657d68130040251f15e74ee6bdfcf (diff) | |
Fix function w handling in VM FM2O
Diffstat (limited to 'vm.bqn')
| -rw-r--r-- | vm.bqn | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -96,9 +96,9 @@ ops ← ((!∘"Unknown opcode")˙⊣´⊢)¨ ⊔˝ ⍉> ⟨ 26‿( {s𝕊e: s.Push { f‿m : F _m } s.Pop 2 }˙) 27‿( {s𝕊e: s.Push { f‿m‿g: F _m_ g } s.Pop 3 }˙) # Application with Nothing - 18‿( {s𝕊e: s.Push { f‿x: F⍟(nothing⊸≢) x } s.Pop 2 }˙) # Like 16 - 19‿( {s𝕊e: s.Push { w‿f‿x: (nothing≢w˙)◶⟨F,w⊸F⟩⍟(nothing⊸≢) x } s.Pop 3 }˙) # Like 17 - 23‿( {s𝕊e: s.Push { f‿g‿h: {f≡nothing?G H;F G H} } s.Pop 3 }˙) # Like 21 + 18‿( {s𝕊e: s.Push { f‿x: F⍟(nothing⊸≢) x } s.Pop 2 }˙) # Like 16 + 19‿( {s𝕊e: s.Push { w‿f‿x: (nothing≢w˙)◶⟨F,w˙⊸F⟩⍟(nothing⊸≢) x } s.Pop 3 }˙) # Like 17 + 23‿( {s𝕊e: s.Push { f‿g‿h: {f≡nothing?G H;F G H} } s.Pop 3 }˙) # Like 21 22‿( {s𝕊e: "Left argument required" ! nothing≢s.Peek@ }˙) # Variables 32‿{v←VO𝕩⋄ {s𝕊e: s.Push (V e).Get @ } } |
