aboutsummaryrefslogtreecommitdiff
path: root/help/>merge great.md
blob: a90e1d5db4ecfe9437af24742dc7b36f91aae7ad (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
28
29
30
31
32
33
34
35
36
37
38
39
40
*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/>merge great.html).*

# Greater Than (`>`)

`> 𝕩`: Merge  

Add the rank of an element of `𝕩` to the rank of `𝕩`.

All elements must have the same rank.

Returns atomic values as is.


      a ← ⟨⟨1, 2⟩, ⟨3, 4⟩⟩
    ⟨ ⟨ 1 2 ⟩ ⟨ 3 4 ⟩ ⟩
      >a
    ┌─     
    ╵ 1 2  
      3 4  
          ┘
      ≢a
    ⟨ 2 ⟩
      ≢>a
    ⟨ 2 2 ⟩
      


`𝕨 > 𝕩`: Greater Than

`𝕨` and `𝕩` can both be either numbers or characters.

[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion)

      1 > 3
    0
      2‿3‿0 > 3‿1‿0
    ⟨ 0 1 0 ⟩
      'a' > 'b'
    1