KX Community

Find answers, ask questions, and connect with our KX Community around the world.

Home Forums kdb+ Basic (but still intriguing to me) q Interpreter question

  • Basic (but still intriguing to me) q Interpreter question

    Posted by jp on August 31, 2021 at 12:00 am

    A bit at lost here… Can someone enlighten me as to how the interpreter works in the following situation:

    q)show a:10?(-1 0 1)   //Just to have something
    0 1 1 0 -1 0 1 -1 0 0

    q)(>)a    //That’s the curiosity
    1 2 6 0 3 5 8 9 4 7

    I understand this is actually the same as…

    q)raze where each a=/:desc distinct a  
    1 2 6 0 3 5 8 9 4 7

    but… can’t figure out where this is coming from(!)

    Thx in advance

     

    jp replied 1 month, 2 weeks ago 2 Members · 2 Replies
  • 2 Replies

Log in to reply.