kdb+ and q
Q+A on all things kdb+ database and the q language
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Code coverage in q

Hi,Anyone has an idea of how to implement code coverage in q?So far I've built a simple library that retrieves the list of global functions called in a test and converging until I get the tree of all functions called.However let's say there is an "if...

Declare a dictionary as mixted list across multiple lines

Hello, at my previous job I remember I got a nice trick to declare a dictionary over several lines, this was nice as it was much more readable.Something liked: listToDict[ (`key1; value1) \(`key2; object2) \(`key3; value3) \(`key4; object4) ];So ther...

Q Language looping

up votedown votefavoriteI am new to Q language and trying to figure out its basics. I am trying a sample program in which let's say for a given number I can find the sum of all the multiples of 3 and 5?if input is 10 sum : 23I am trying to think in t...

left shift operator/function

Hello: I'm not able to find a left/right shift operator like in C: 8 >> 1 = 4.I can use div 2, 4 8 etc. But is there a shift function/operator?Thanks in advance.