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

# Up Down Arrow (`↕`)

## `↕ 𝕩`: Range

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

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

        5 ↕ "abcdefg"

        a ← 3‿3⥊↕9

        2‿2 ↕ a