aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-01 08:01:17 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-01 08:01:17 -0400
commit58c4c664ccb627102481c7bcb457e0f84a74d938 (patch)
tree1fdd1920595071b17f91e7a51eaf77e35f01018d
parent85bd95ab4f2a40ccb1de042eaca64b9383a901ae (diff)
Fix editing error: recurse instead of using previous function
-rw-r--r--doc/block.md2
-rw-r--r--docs/doc/block.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/block.md b/doc/block.md
index c75ea321..d4bdd71b 100644
--- a/doc/block.md
+++ b/doc/block.md
@@ -87,7 +87,7 @@ If a block is assigned a name after it is created, this name can be used for rec
This is somewhat unsatisfying because it is external to the function being defined, even though it doesn't depend on outside information. Instead, the special name `π•Š` can be used to refer to the function it appears in. This allows anonymous recursive functions to be defined.
- { 𝕩 Γ— (0⊸<)β—Ά1β€ΏFact 𝕩-1 } 7
+ { 𝕩 Γ— (0⊸<)β—Ά1β€Ώπ•Š 𝕩-1 } 7
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.
diff --git a/docs/doc/block.html b/docs/doc/block.html
index 7c077588..8c7a7770 100644
--- a/docs/doc/block.html
+++ b/docs/doc/block.html
@@ -125,7 +125,7 @@
</span>5040
</pre>
<p>This is somewhat unsatisfying because it is external to the function being defined, even though it doesn't depend on outside information. Instead, the special name <code><span class='Function'>π•Š</span></code> can be used to refer to the function it appears in. This allows anonymous recursive functions to be defined.</p>
-<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=eyDwnZWpIMOXICgw4oq4PCnil7Yx4oC/RmFjdCDwnZWpLTEgfSA3&run">↗️</a><pre> <span class='Brace'>{</span> <span class='Value'>𝕩</span> <span class='Function'>Γ—</span> <span class='Paren'>(</span><span class='Number'>0</span><span class='Modifier2'>⊸</span><span class='Function'>&lt;</span><span class='Paren'>)</span><span class='Modifier2'>β—Ά</span><span class='Number'>1</span><span class='Ligature'>β€Ώ</span><span class='Function'>Fact</span> <span class='Value'>𝕩</span><span class='Function'>-</span><span class='Number'>1</span> <span class='Brace'>}</span> <span class='Number'>7</span>
+<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=eyDwnZWpIMOXICgw4oq4PCnil7Yx4oC/8J2ViiDwnZWpLTEgfSA3&run">↗️</a><pre> <span class='Brace'>{</span> <span class='Value'>𝕩</span> <span class='Function'>Γ—</span> <span class='Paren'>(</span><span class='Number'>0</span><span class='Modifier2'>⊸</span><span class='Function'>&lt;</span><span class='Paren'>)</span><span class='Modifier2'>β—Ά</span><span class='Number'>1</span><span class='Ligature'>β€Ώ</span><span class='Function'>π•Š</span> <span class='Value'>𝕩</span><span class='Function'>-</span><span class='Number'>1</span> <span class='Brace'>}</span> <span class='Number'>7</span>
5040
</pre>
<p>For modifiers, <code><span class='Value'>𝕣</span></code> refers to the containing modifier. <code><span class='Function'>π•Š</span></code> makes the modifier a deferred modifier like <code><span class='Value'>𝕨</span></code> and <code><span class='Value'>𝕩</span></code> 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 <code><span class='Value'>factorial_helper</span></code> function in elementary Scheme.</p>