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

# Circle Stile (`⌽`)
    
## `⌽ 𝕩`: Reverse  
    
Reverse the first axis of `𝕩`.
    
           ⌽ 1‿2‿3

           a ← 3‿3 ⥊ ↕9

           ⌽ a

    
    
## `𝕨 ⌽ 𝕩`: Dyad
    
Move the first `𝕨` elements of `𝕩` to its end. Negative `𝕨` reverses the direction of rotation.
    
           2 ⌽ 1‿2‿3

           a ← 3‿3 ⥊ ↕9

           2 ⌽ a