Reference/Ampersand

From Kx Wiki
Jump to: navigation, search

Contents

& (min/where verb)

Min

Used dyadically, this is the minimum function. The arguments may be of any type except symbol:

q)3 & til 7
0 1 2 3 3 3 3
q)2 3 5 & -1 6 4
-1 3 4
q)100 & "cde"
"cdd"

Note that this is the same as logical and for boolean arguments:

q)0011b & 0101b
0001b

Where

Used monadically, this is the where function:

q)(&) 0 1 0 1 1
1 3 4

See also


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

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox