equivalence between within and &

is date within A;B

same as

date>=A & date<=B

nope

if? you wrap first expression with brackets it would produce the same result

even though, evaluation of second is slower then ‘within’ - checked on few days in hdb

maybe map-reduce doesn’t work with second, not sure…

‘within’ includes the start and end value.

doing a quick search on code.kx.com for ‘within’ gives:
http://code.kx.com/wiki/Reference/within

q)d:2012.12.12
q)A:2012.12.01
q)B:2012.12.31
q)d within (A;B)
1b
q)d within A,B
1b
q)(d>=A)&d<=B
1b
q)A within A,B
1b
q)B within A,B
1b