aboutsummaryrefslogtreecommitdiff
path: root/help/fold.md
diff options
context:
space:
mode:
authorrazetime <raghuallthetime@hotmail.com>2022-01-19 22:48:16 +0530
committerrazetime <raghuallthetime@hotmail.com>2022-01-19 22:48:16 +0530
commit2c50d91ec7eb8bc7890befe874a0b93729c2437e (patch)
treeeb621b86b3c8269ab2dd63bd3c628acdf3521059 /help/fold.md
parent6c111f1e71e945f66977aecc3322318aa21beacc (diff)
add h2s remove copied output, ascii filenames
Diffstat (limited to 'help/fold.md')
-rw-r--r--help/fold.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/help/fold.md b/help/fold.md
new file mode 100644
index 00000000..3684d96c
--- /dev/null
+++ b/help/fold.md
@@ -0,0 +1,30 @@
+*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/fold.html).*
+
+# Acute Accent (`´`)
+
+## `𝔽´ 𝕩`: Fold
+
+Fold over `𝕩` with `𝔽` from right to left i.e. Insert `𝔽` between the elements of `𝕩`.
+
+ +´ 1‿2‿3
+
+ 1+2+3
+
+ -´ 1‿2‿3
+
+ 1-2-3
+
+
+## `𝕨 𝔽´ 𝕩`: Fold With initial
+
+Monadic fold, but use `𝕨` as initial right argument.
+
+ 5 +´ 1‿2‿3
+
+ 1+2+3+5
+
+ 5 -´ 1‿2‿3
+
+ 1-2-3-5
+
+