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

# Solidus (`/`)

## `/ 𝕩`: Indices

Repeat the index of each element in `𝕩` by the element's value. `𝕩` must be rank 1.

        / 1‿2‿3

        / 1‿0‿1



## `𝕨 / 𝕩`: Replicate

Repeat each major cell in `𝕩` by the corresponding element in `𝕨`.

Unit `𝕨` applies to all elements.

        3 / "copy"

        1‿0‿1 / 1‿2‿3