aboutsummaryrefslogtreecommitdiff
path: root/help/insert.md
blob: 08c4cbf616797885c6029b30969e40b9e023bc0a (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 cells of `𝕩` with `𝔽` from end to start, that is, 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