diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-11-29 21:03:34 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-11-29 21:03:34 -0500 |
| commit | 80de67787aa1a7e186c7f3358ec4b45741f15ff5 (patch) | |
| tree | 58bbce5e97d8990721d60a0cd992a2a8c73beced /doc/control.md | |
| parent | fb3580660898306105c2e1f041f29bbdb9006210 (diff) | |
Remove → from docs and REPL
Diffstat (limited to 'doc/control.md')
| -rw-r--r-- | doc/control.md | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/doc/control.md b/doc/control.md index fea4f8e7..c6cfcf11 100644 --- a/doc/control.md +++ b/doc/control.md @@ -249,17 +249,3 @@ The `While` loop alone allows syntax similar to the `For` loop. Perform any init 1: c↩1+3×c } }⟩ - -### Break and continue - -In a `While` or `For` loop, [returns](block.md#returns) can be used for either the break or the continue statement (or, for that matter, a multiline break) if available. Returning from the main body, either with `𝕊→` or a labelled return, is a functional version of a continue statement. To escape from the loop as a whole, it should be wrapped in a labelled immediate block. Returning from that block using its label breaks the loop. For example, the following loop - - {brk: - sum ← 0 ⋄ even ← ⟨⟩ - While {𝕤⋄sum<100}‿{Cnt: - brk→⍟(15≤n) @ - sum +↩ n - Cnt→⍟(2|n) @ - even ∾↩ n - } - } |
