Reference/CurlyBraces

From Kx Wiki
Revision as of 20:53, 9 August 2012 by Michael Gottlieb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The only function of curly braces ({}) is to describe an inline q function, which can contain multiple statements. At the very start of the function, the function's parameters can be placed inside brackets ([]); if this is not done, q will use x, y, and z for parameters. For more details about functions, see Q for Mortals.

q){[t] t*t}
{t*t}
q){[t] t*t} 5
25
q){x*x} 5
25
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox