Skip to content

and

Lesser of two values, logical AND

x and y       and[x;y]
x & y         &[x;y]

Returns the lesser of the underlying values of x and y. In the case of boolean values, it is equivalent to the AND operator.

q)2 and 3
2
q)1010b and 1100b  /logical AND with booleans
1000b
q)"sat" and "cow"
"cat"

and is a multithreaded primitive.

Lesser