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

# Minus (`-`)
    
## `- 𝕩`: Negate
    
Additive Inverse of `𝕩`.
    
[Pervasive.](../doc/arithmetic.md#pervasion)
    
          - 1

          - ¯1

    
## `𝕨 - 𝕩`: Subtract
    
Subtract `𝕩` from `𝕨`. `𝕨` and `𝕩` can be characters or integers.
    
[Pervasive.](../doc/arithmetic.md#pervasion)
    
          1 - 2

          1 - 2‿3‿4

          'a' - 4

          'b' - 'a'