- Introduction
- Platform
- Tutorial
- Language reference
- Verbs
- Iterators
- Queries
- Dynamic parsers
- Language idioms
- Standard library
- Plugins
- For Python developers
- For KDB+ developers
- Application examples
- FAQ
Dyadic difference
Syntax: <x> diff <y>
; diff[<x>; <y>]
Set difference is a dyadic verb. Rеturns vаlues which appear in x
but not in y
.
o)0 1 2 3 4 diff 4 0
1 2 3
o)`a`b`c diff `b`v
`a`c
o)(0 1; 2; 3 5 6) diff (-3 -2 -1;0 1; 2 3 4)
2
3 5 6
o)