aboutsummaryrefslogtreecommitdiff
path: root/help/range_windows.md
blob: 0896a6e95ba91b10274ee27678f2e09ea1522f61 (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
*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/range_windows.html).*

# Up Down Arrow (`↕`)

## `↕ 𝕩`: Range
[→full documentation](../doc/range.md)

Return all indices that would index into an array of shape `𝕩`.

When given a single number, range from `0` to `𝕩-1`.

        ↕ 4

        ↕ 4‿5



## `𝕨 ↕ 𝕩`: Windows
[→full documentation](../doc/windows.md)

Overlapping slices from `𝕩` of shape `𝕨`.

        5 ↕ "abcdefg"

        a ← 3‿3⥊↕9

        2‿2 ↕ a