diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-06-15 22:26:23 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-06-15 22:26:23 -0400 |
| commit | c3416569ef883e1deb3132986b2d577879f15ea2 (patch) | |
| tree | 94828d77479dc3f369d95c70baa46b3076c2a3be /doc/block.md | |
| parent | 7b81224a5929c919815eb0a770cac93fa1325174 (diff) | |
Fix Fact_mod example
Diffstat (limited to 'doc/block.md')
| -rw-r--r-- | doc/block.md | 2 |
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. |
