aboutsummaryrefslogtreecommitdiff
path: root/doc/reverse.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-03 15:51:15 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-03 15:55:14 -0400
commit29509cedb9af2715328e44c481738a9ba05cff73 (patch)
tree734a0251dbb20bc7e29b4b0e3bac3b48e0cdaff0 /doc/reverse.md
parent30b5188c23576d5e119bbc8d27cd08a3015a75c9 (diff)
Use ⋈ rather than ≍○< in documentation examples
Diffstat (limited to 'doc/reverse.md')
-rw-r--r--doc/reverse.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/reverse.md b/doc/reverse.md
index 5a1e2f37..f2a20281 100644
--- a/doc/reverse.md
+++ b/doc/reverse.md
@@ -22,11 +22,11 @@ To reverse along an axis other than the first, use Cells (`˘`) or Rank (`⎉`).
⌽˘ >"ab"‿"cd"‿"ef"
-Reverse is useful for [folding](fold.md) left to right instead of right to left.
+Reverse is useful for [folding](fold.md) left to right instead of right to left (here we use [Pair](pair.md) to show structure).
- ≍○< ´ "abcd" # Right to left
+ ⋈ ´ "abcd" # Right to left
- ≍○<˜´ ⌽ "abcd" # Left to right
+ ⋈˜´ ⌽ "abcd" # Left to right
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`.
@@ -40,7 +40,7 @@ Rotate moves elements in a list around cyclically. It can also rotate any number
2 ⌽ "rotate"
- 2 (⊢ ≍○< ⌽) 5‿2⥊"rotateCELL"
+ 2 (⊢ ⋈ ⌽) 5‿2⥊"rotateCELL"
2 ⌽ 'c' # No axes to rotate