Forum Replies Created

  • newstudent2017

    Member
    October 12, 2022 at 12:00 am in reply to: parse tree not working for simple select

    In response to @cillianreilly and @mchbrn-q

    It seems, simple exec parse tree has a dual nature : It can act as a “c” and an “a” in  ?[t;c;b;a] .

    It seems like a “c” here:

    ?[tab;til 10;(where;(>;`c2;16))] /Equivalent ?[tab;til 10;((&:);(>;`c2;16))]

    It seems like an “a” here:

    ?[tab;til 10;(last;`c2)]

    Thoughts ?

  • newstudent2017

    Member
    October 12, 2022 at 12:00 am in reply to: rotate function differences between k and q

    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

  • newstudent2017

    Member
    October 11, 2022 at 12:00 am in reply to: parse tree not working for simple select

    Where in the doc does it say a “where” is needed ?

    Similarly adding “;” is not necessary in the examples shown in docs.

     

    @SJT, Are these both cases of incomplete documentation ?