Reference/view

From Kx Wiki
Jump to: navigation, search

view (view function)

The view function returns the expression defining the dependency passed as its symbol argument.

Example

q)v::2+a*3                        / define dependency v
q)a:5
q)v
17
q)view `v                         / view the dependency expression
"2+a*3"
Warning.png a view must have no side-effects, be set outside of a function, and be the only expression on the line, with no trailing semicolon, nor any preceding whitespace.

See also


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

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox