diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-08-03 17:08:58 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-08-03 17:08:58 -0400 |
| commit | 8659fe5eb829b912b21c5ef604d8a7f36a74ee28 (patch) | |
| tree | a7cb4d99fd02c767feda92a9aa397c4e7bf4cec3 /doc/reverse.md | |
| parent | 12b2f076d8c3f6acb11a82d555360dd44e3c8083 (diff) | |
Some links to undo.md
Diffstat (limited to 'doc/reverse.md')
| -rw-r--r-- | doc/reverse.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/reverse.md b/doc/reverse.md index e1e85d46..5a1e2f37 100644 --- a/doc/reverse.md +++ b/doc/reverse.md @@ -28,7 +28,7 @@ Reverse is useful for [folding](fold.md) left to right instead of right to left. ≍○<˜´ ⌽ "abcd" # Left to right -Reverse is its own inverse `⌽⁼`. As a result, `𝔽⌾⌽` reverses the argument, applies `𝔽`, and reverses again. It's a particularly useful pattern with [Scan](scan.md), as it allows scanning from the end rather than the beginning of the array. For example, `` ∨` `` on a list of booleans changes all bits after the first `1` to `1`, but `` ∨`⌾⌽ `` does this to all bits before the last `1`. +Reverse is its own [inverse](undo.md) `⌽⁼`. As a result, `𝔽⌾⌽` reverses the argument, applies `𝔽`, and reverses again. It's a particularly useful pattern with [Scan](scan.md), as it allows scanning from the end rather than the beginning of the array. For example, `` ∨` `` on a list of booleans changes all bits after the first `1` to `1`, but `` ∨`⌾⌽ `` does this to all bits before the last `1`. ∨` 0‿0‿1‿0‿0‿1‿0 |
