Reference/view

From Kx Wiki
Jump to: navigation, search

301 Permanent move

This article is now at
code.kx.com/q/ref/elements/#views
code.kx.com/q/tutorials/views/

Please update your bookmark. The old wiki will remain here for a while. If you prefer it to the new format, please tell the Librarian why.

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