aboutsummaryrefslogtreecommitdiff
path: root/help/insert.md
blob: 22e6814b147b3d59dd9e8802b4983a008022ec43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/insert.html).*

# Double Acute Accent (`˝`)

## `𝔽˝ 𝕩`: Insert

Fold over `𝕩` with `𝔽` from right to left i.e. Insert `𝔽` between the major cells of `𝕩`.

           a ← 3‿3 ⥊ ↕9

           +˝ a

           0‿1‿2 + 3‿4‿5 + 6‿7‿8


## `𝕨 𝔽˝ 𝕩`: Insert With initial

Monadic insert, but use `𝕨` as initial right argument.

If

           b ← 3‿3 ⥊ ↕9

           1‿1‿1 +˝ b

           1 +˝ b

           0‿1‿2 + 3‿4‿5 + 6‿7‿8 + 1‿1‿1