Home › Forums › kdb+ › Why does the amend form of dot operator creates a projecttion like the line in .u.rep: (.[;();:;].)each x? Shouldn’t it apply the function to every item in x since we do "each"? Thank you! › Re: Why does the amend form of dot operator creates a projecttion like the line in .u.rep: (.[;();:;].)each x? Shouldn’t it apply the function to every item in x since we do "each"? Thank y
-
I am trying to understand the .u.rep function in r.q: .u.rep: (.[;();:;].)each x Shouldn't it apply the function to every item in x since we do "each"; it still needs the right-most dot to apply the function to each pair of x Here, x: x:((`trade;([]time:`time$();sym:`$();price:`float$();size:`int$()));(`quote;([]time:`time$();sym:`$();bid:`float$();bsize:`int$();ask:`float$();asize:`int$())));
Why does it create a projection? (without the right-most dot, it’s a projection):
.u.rep: (.[;();:;])each x