KX Community

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

Home Forums KX Academy Understanding this line from vanilla tick set up Re: Understanding this line from vanilla tick set up

  • matt_moore

    Member
    March 15, 2022 at 12:00 am

    It’s creating a unary projection / composition for the part in brackets, could achieve the same with a lamda function:

     

    q)(`time`sym~2#key flip value@) ~[`time`sym]#[2]!+@[.:]

    q)(`time`sym~2#key flip value@) each t 110b q){`time`sym~2#key flip value x} each t 110b

     

    * there is an overhead with using lambdas so in tick it’s preferred to be as efficient as possible