KX Community

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

Home Forums kdb+ rotate function differences between k and q Re: rotate function differences between k and q

  • newstudent2017

    Member
    October 12, 2022 at 12:00 am

    Thanks @SJT and @gyorokpeter-kx

     

    l / 2 3 5 7 11j

    2 rotate l / 5 7 11 2 3j

    {$[0h>(@)y;’`rank; 98h<(@)y;’`type; (#)y ; (,/)(|)(0;mod[x;(#)y])_y ; y ] } [2;l] /5 7 11 2 3j

    I guess the above works