Reference/eval

From Kx Wiki
Jump to: navigation, search

eval (eval function)

The eval function is the dual to parse and can be used to evaluate a parse tree as returned by that function (as well as manually constructed parse trees).

Example

Evaluating the result of a parse:

q)parse "2+3"
+
2
3
q)eval parse "2+3"
5

Evaluating a manually constructed parse tree:

q)eval (+;2;3)
5

See also


For a complete list of functions, see the kdb+ Function Reference.

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox