

kdb_newbie
@kdb_newbie
•
Joined Feb 2024 •
Active 3 weeks ago
Forum Replies Created
-
thank you so much for all the help! super clear explanation!
-
kdb_newbie
MemberMay 24, 2023 at 12:00 am in reply to: May I please know how the over iterator is being used here?Thank you very much! May I ask where is the documentation on “-1” used here?
-
kdb_newbie
MemberFebruary 27, 2023 at 12:00 am in reply to: 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!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