From 2c50d91ec7eb8bc7890befe874a0b93729c2437e Mon Sep 17 00:00:00 2001 From: razetime Date: Wed, 19 Jan 2022 22:48:16 +0530 Subject: add h2s remove copied output, ascii filenames --- docs/help/scan.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 docs/help/scan.html (limited to 'docs/help/scan.html') diff --git a/docs/help/scan.html b/docs/help/scan.html new file mode 100644 index 00000000..9ddf093a --- /dev/null +++ b/docs/help/scan.html @@ -0,0 +1,35 @@ + + + + BQN: Grave (`` ` ``) + + +

Grave (`)

+

𝔽` 𝕩: Fold

+

Scan over 𝕩 with 𝔽 from left to right, producing intermediate values.

+↗️
       +` 123
+⟨ 1 3 6 ⟩
+
+       1, 1+2, (1+2)+3
+⟨ 1 3 6 ⟩
+
+       -` 123
+⟨ 1 ¯1 ¯4 ⟩
+
+       1, 1-2, (1-2)-3
+⟨ 1 ¯1 ¯4 ⟩
+
+

𝕨 𝔽` 𝕩: Scan With initial

+

Monadic scan, but use 𝕨 as initial left argument.

+↗️
       5 +` 123
+⟨ 6 8 11 ⟩
+
+       5+1, (5+1)+2, ((5+1)+2)+3
+⟨ 6 8 11 ⟩
+
+       5 -` 123
+⟨ 4 2 ¯1 ⟩
+
+       5-1, (5-1)-2, ((5-1)-2)-3
+⟨ 4 2 ¯1 ⟩
+
-- cgit v1.2.3