- Introduction
- Platform
- Tutorial
- Language reference
- Verbs
- Iterators
- Queries
- Dynamic parsers
- Language idioms
- Standard library
- Plugins
- For Python developers
- For KDB+ developers
- Application examples
- FAQ
Monadic ~ (not)
Inverts boolean vector. Right atomic.
Syntax: ~<x>
; not <x>
; ~[<x>]
; not[<x>]
o)~1010b
0101b
o)~1<2
0b
o)~(1>2 0 -1)
100b
o)
... or checks for zeroes if x
is a number:
o)~1 0 3f
010b
o)~(100 - 10 100 1000)
010b
o)