Home › Forums › kdb+ › How to make two referencing sub-projection works? › Re: How to make two referencing sub-projection works?
-
f:{[xF] g:{[h;xG] $[xG < 0; xG; h[.z.s; xG - 2] + 20]}; h:{[g;xH] $[xH < 0; xH; g[.z.s; xH - 3] + 30]}; g[h; xF] }; f[10];
Another option is to use .z.s to refer to the calling function when calling the other function.