cancel
Showing results for 
Search instead for 
Did you mean: 

over not working with booleans

analyst_tech_jo
New Contributor
1b &\ 1000000010b /works
1b &/ 1000000010b /gives nyi, why?

2 REPLIES 2

AquaQMatt
New Contributor
Hi,
I'm assuming this actually hasn't be implemented for the syntax you're trying to use.

You can however use this format
q){x&y}\[1b;1000000010b]
1000000000b
q){x&y}/[1b;1000000010b]
0b

Which should return the value you're looking for. I'm not quite sure what you're trying to do, but this operator may also be of use:
q)all 1000000010b
0b
q)all 1111111111b
1b

As, for your scan/over, as soon as there is a 0b present, the rest of the list will always be 0b. So all will essentially the same value as last value using scan/over.

Regards,
Matt

VA
New Contributor
Whenever you get "nyi" - this means that whatever you're trying to do makes sense, but it has not been yet implemented by KX.