Reference/eval

From Kx Wiki
Revision as of 20:48, 9 August 2012 by Michael Gottlieb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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