Matt BellGuest
Hi,
Is it possible to write a while loop in kdb?
Or what about other loops, does kdb support for loops, do while loops?
How can I control running a process a certain number of times?
Chris WebbGuest
Yes it is possible to do that. You can look it up at http://code.kx.com/wiki/Reference/while
I can give you an example:
cumsum:{[n]
a:0;
while [not n = 0;
a:a+n;
n:n-1;
];
:a
}
I believe it is self explanatry what happens.
I hope this answers your question.
Regards,
Chris
nike air discountGuest
8. ARISTOTE. Sur are generally figurine d’Hermias, 脿
nike air discount http://www.tace.or.th/airmax90-fr.asp?p=4660