cancel
Showing results for 
Search instead for 
Did you mean: 

Re: [personal kdb+] k code in a q function

newstudent2017
New Contributor II
See below:

foo:{ “k” “1+1” }

3 REPLIES 3

MS1
New Contributor
thanks that helps.!

newstudent2017
New Contributor II
You welcome my friend 🙂

Nick
New Contributor
*prepend* the definition with k)

q)k)equal:=':
q)equal 1 1 2 3 4 4
010001b

q)k)pctile:{[p;x]x<:[x] -1+-_-p*#x}
q)pctile[.01 .5 .99] 10000?1f
0.01017335 0.503294 0.9914573