aboutsummaryrefslogtreecommitdiff
path: root/help/negate_subtract.md
blob: 399c2833ad48b8049c508b71b41a66921397f9a3 (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
*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 numbers.

[Pervasive.](../doc/arithmetic.md#pervasion)

          1 - 2

          1 - 2‿3‿4

          'a' - 4

          'b' - 'a'