aboutsummaryrefslogtreecommitdiff
path: root/help/reverse_rotate.md
blob: 9d38940c8250a14b394040e7913682a5040ac6c7 (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/reverse_rotate.html).*

# Circle Stile (`⌽`)

## `⌽ 𝕩`: Reverse

Reverse `𝕩` along the first axis.

           ⌽ 1‿2‿3

           a ← 3‿3 ⥊ ↕9

           ⌽ a



## `𝕨 ⌽ 𝕩`: Rotate

Move the first `𝕨` elements of `𝕩` to its end. Negative `𝕨` reverses the direction of rotation.

           2 ⌽ 1‿2‿3

           b ← 3‿3 ⥊ ↕9

           2 ⌽ b