aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-06-15 22:26:23 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-06-15 22:26:23 -0400
commitc3416569ef883e1deb3132986b2d577879f15ea2 (patch)
tree94828d77479dc3f369d95c70baa46b3076c2a3be /doc
parent7b81224a5929c919815eb0a770cac93fa1325174 (diff)
Fix Fact_mod example
Diffstat (limited to 'doc')
-rw-r--r--doc/block.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/block.md b/doc/block.md
index 690f8a27..75550a94 100644
--- a/doc/block.md
+++ b/doc/block.md
@@ -91,7 +91,7 @@ This is somewhat unsatisfying because it is external to the function being defin
For modifiers, `𝕣` refers to the containing modifier. `π•Š` makes the modifier a deferred modifier like `𝕨` and `𝕩` do, and refers to the derived function. For example, this tail-recursive factorial function uses the operand to accumulate a result, a task that is usually done with a second `factorial_helper` function in elementary Scheme.
- Fact_mod ← 1 { (0⊸<)β—ΆβŸ¨1, (𝕨×𝕩)_π•£βŸ© 𝕩-1 }
+ Fact_mod ← 1 { (0⊸<)β—ΆβŸ¨π•—, (𝕗×𝕩)_π•£βŸ© 𝕩-1 }
Fact_mod 7
Because `𝕣` only ever refers to a 1-modifier or 2-modifer, it can never make sense to refer to it as a function, and the uppercase letter `ℝ` is not recognized by BQN. In order to allow `𝕣` to be spelled as a 1-modifier `_𝕣` or 2-modifier `_𝕣_`, it is treated as an ordinary identifier character, so it must be separated from letters or numbers by spaces.