- 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 ~ (match)
Rеturns 1b
whеre x
and y
are identical.
Syntax: <x> ~ <y>
; ~[<x>; <y>]
o) 1 0 3 ~ 1 2 3
0b
o) 1 2 3 ~ 1 2 3
1b
o)
This verb compares both vаlues and types:
o)1~1.0
0b
o)1f~10f%10f
1b
o)0~00:00:00
0b
o)`a~"a"
0b
o)
Match ignores attributes:
o)l:2*!5
0 2 4 6 8
o)l~`s#l
1b
o)l~`g#l
1b