- 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 eval
Evaluates parse trees.
Syntax: eval <x>
; eval[<x>]
o)eval(+;1;1)
2
o)d:parse "`a`b!(1 2)"
!
`a`b
1 2
o)eval d
a| 1
b| 2
o)d1:parse "3*`a`b!(1 2)"
*
3
(!;`a`b;1 2)
o)eval d1
a| 3
b| 6
o)