aboutsummaryrefslogtreecommitdiff
path: root/help/negate_subtract.md
blob: 2b1126a94fc0cb4c9a823cc4062299312afb758a (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
[→full documentation](../doc/arithmetic.md#basic-arithmetic)

Additive Inverse of `𝕩`.

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

        - 1

        - ¯1


## `𝕨 - 𝕩`: Subtract
[→full documentation](../doc/arithmetic.md#basic-arithmetic)

Subtract `𝕩` from `𝕨`. `𝕨` and `𝕩` can be characters or numbers.

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

        1 - 2

        1 - 2‿3‿4

        'a' - 4

        'b' - 'a'