Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
q/kdb+ 0.28 KB | None | 0 0
  1. upd: {[t;x]
  2.     .lb.t:t;
  3.     .lb.x:x;
  4.     if [not count x;:()]
  5.     a:.z.p;
  6.     if[not -16=type first first x; a:"n"$a];
  7.       f:cols getfromdot[t];
  8.       g:flip f!flip x;
  9.       pub[t;$[0>type first x; enlist f!flip x;flip f!flip x]];
  10.       if[l; l enlist (`upd;t;g);i+:1];
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement