aboutsummaryrefslogtreecommitdiff
path: root/help/`scan.md
diff options
context:
space:
mode:
Diffstat (limited to 'help/`scan.md')
-rw-r--r--help/`scan.md48
1 files changed, 25 insertions, 23 deletions
diff --git a/help/`scan.md b/help/`scan.md
index dc4013b9..5f255d70 100644
--- a/help/`scan.md
+++ b/help/`scan.md
@@ -1,29 +1,31 @@
-Acute Accent (`` ` ``)
+*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/`scan.html).*
-`𝔽` 𝕩`: Fold
+# Acute Accent (`` ` ``)
+
+``𝔽` 𝕩``: Fold
Scan over `𝕩` with `𝔽` from left to right, producing intermediate values.
-```
- +` 1‿2‿3
-⟨ 1 3 6 ⟩
- ⟨1, 1+2, (1+2)+3⟩
-⟨ 1 3 6 ⟩
- -` 1‿2‿3
-⟨ 1 ¯1 ¯4 ⟩
- ⟨1, 1-2, (1-2)-3⟩
-⟨ 1 ¯1 ¯4 ⟩
-```
-`𝕨 𝔽` 𝕩`: Scan With initial
+
+ +` 1‿2‿3
+ ⟨ 1 3 6 ⟩
+ ⟨1, 1+2, (1+2)+3⟩
+ ⟨ 1 3 6 ⟩
+ -` 1‿2‿3
+ ⟨ 1 ¯1 ¯4 ⟩
+ ⟨1, 1-2, (1-2)-3⟩
+ ⟨ 1 ¯1 ¯4 ⟩
+
+``𝕨 𝔽` 𝕩``: Scan With initial
Monadic scan, but use `𝕨` as initial left argument.
-```
- 5 +` 1‿2‿3
-⟨ 6 8 11 ⟩
- ⟨5+1, (5+1)+2, ((5+1)+2)+3⟩
-⟨ 6 8 11 ⟩
- 5 -` 1‿2‿3
-⟨ 4 2 ¯1 ⟩
- ⟨5-1, (5-1)-2, ((5-1)-2)-3⟩
-⟨ 4 2 ¯1 ⟩
-``` \ No newline at end of file
+
+ 5 +` 1‿2‿3
+ ⟨ 6 8 11 ⟩
+ ⟨5+1, (5+1)+2, ((5+1)+2)+3⟩
+ ⟨ 6 8 11 ⟩
+ 5 -` 1‿2‿3
+ ⟨ 4 2 ¯1 ⟩
+ ⟨5-1, (5-1)-2, ((5-1)-2)-3⟩
+ ⟨ 4 2 ¯1 ⟩
+