aboutsummaryrefslogtreecommitdiff
path: root/help/fold.md
diff options
context:
space:
mode:
Diffstat (limited to 'help/fold.md')
-rw-r--r--help/fold.md12
1 files changed, 5 insertions, 7 deletions
diff --git a/help/fold.md b/help/fold.md
index 33b2e0f5..24c79f30 100644
--- a/help/fold.md
+++ b/help/fold.md
@@ -1,9 +1,9 @@
*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 `๐•ฉ`.
`๐•ฉ` must be a simple list (`1 = =๐•ฉ`).
@@ -16,11 +16,11 @@ Fold over `๐•ฉ` with `๐”ฝ` from right to left i.e. Insert `๐”ฝ` between the e
1-2-3
-
+
## `๐•จ ๐”ฝยด ๐•ฉ`: Fold With initial
-
+
Monadic fold, but use `๐•จ` as initial right argument.
-
+
5 +ยด 1โ€ฟ2โ€ฟ3
1+2+3+5
@@ -28,5 +28,3 @@ Monadic fold, but use `๐•จ` as initial right argument.
5 -ยด 1โ€ฟ2โ€ฟ3
1-2-3-5
-
-