on 492ae2f help sign in
47 lines 622 B history raw
1### `++not`
3Binary NOT
5Computes the bit-wise logical NOT of the bottom `b` blocks of size `a`
6of `c`.
8Accepts
9-------
11`a` is a block size (see `++bloq`).
13`b` is an atom.
15`c` is an atom.
17Produces
18--------
20An atom.
22Source
23------
25 ++ not |= {a/bloq b/@ c/@} :: binary not (sized)
26 (mix c (dec (bex (mul b (bex a)))))
29Examples
30--------
32 ~zod/try=> `@ub`24
33 0b1.1000
34 ~zod/try=> (not 0 5 24)
35 7
36 ~zod/try=> `@ub`7
37 0b111
38 ~zod/try=> (not 2 5 24)
39 1.048.551
40 ~zod/try=> (not 2 5 1.048.551)
41 24
42 ~zod/try=> (not 1 1 (not 1 1 10))
43 10
47***