aboutsummaryrefslogtreecommitdiff
path: root/help/indices_replicate.md
blob: 2e6b25f6b7b4c01d3e07e74c9ac8c74ba4b9b4e4 (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