aboutsummaryrefslogtreecommitdiff
path: root/bqn.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-03-25 20:50:53 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-03-25 20:50:53 -0400
commitec98071c058e68ab9f3eb62378cad09d05871ee5 (patch)
tree408c9c3d2ad9e6a7ab1a473a1a370cf7b31346ea /bqn.bqn
parenta24022232647b8971cba425683f278f7befcf43f (diff)
Return a setter for Decompose and Glyph from the runtime so they don't have to be defined mutably
Diffstat (limited to 'bqn.bqn')
-rw-r--r--bqn.bqn10
1 files changed, 4 insertions, 6 deletions
diff --git a/bqn.bqn b/bqn.bqn
index 52d18ecb..c7877384 100644
--- a/bqn.bqn
+++ b/bqn.bqn
@@ -4,18 +4,16 @@
⟨DRun,DCompile⟩ ← •Import "dc.bqn"
⟨ref,glyphs⟩ ← •Import "src/pr.bqn"
-rt ← ⟨⟩
-PrimInd ← {⊑rt⊐<𝕩}
-Decompose ← ((≠glyphs)>PrimInd)◶⟨•Decompose,0⊸≍⟩
provide ← ⟨
•Type # Type
- Decompose # Decompose
- glyphs⊑˜PrimInd # Glyph
•FillFn # Fill
⋆⁼ # Log
(≠¨⊔){𝔽⊘(↑⟜𝔽)} # GroupLen
∾⊔∘⊢ # GroupOrd
!,+,-,×,÷,⋆,⌊,=,≤,≢,⥊,⊑,↕,⌜,`,•_fillBy_,⊘
-rt ↩ •COMP provide⊸(⊣»«)⌾(1⊸⊑) DCompile ref
+rt‿SetPrims ← •COMP provide⊸(⊣»«)⌾(1⊸⊑) DCompile ref
+PrimInd ← rt⊸⊐⌾<
+Decompose ← ((≠glyphs)>PrimInd)◶⟨•Decompose,0⊸≍⟩
+SetPrims ⟨ Decompose, glyphs⊑˜PrimInd ⟩
rt⊸DRun