Hi recently started learning KDB, I am trying to performing something like below, would appreciate your help with simplifying it.
q)f:{[x;dt] flip `Destination`Session`Time!(3#last ` vs x;`start`mid`end;("P"$(string dt),"D","01:15:00.000000000";"P"$(string dt),"D","01:30:00.000000000";"P"$(string dt),"D","06:57:00.000000000")) }
q)dt:.z.d+til 5
q)f1:{f[x;y]} each `AAA`BBB`CCC`DDD
q)raze{raze f1[x]} each dt
Can use the each glyph
'for this: