diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-09-01 08:01:17 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-09-01 08:01:17 -0400 |
| commit | 58c4c664ccb627102481c7bcb457e0f84a74d938 (patch) | |
| tree | 1fdd1920595071b17f91e7a51eaf77e35f01018d | |
| parent | 85bd95ab4f2a40ccb1de042eaca64b9383a901ae (diff) | |
Fix editing error: recurse instead of using previous function
| -rw-r--r-- | doc/block.md | 2 | ||||
| -rw-r--r-- | docs/doc/block.html | 2 |
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'><</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'><</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> |
