From 8659fe5eb829b912b21c5ef604d8a7f36a74ee28 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 3 Aug 2021 17:08:58 -0400 Subject: Some links to undo.md --- doc/reverse.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/reverse.md') 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 -- cgit v1.2.3