KX Community

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

Home Forums kdb+ Something for the weekend? Re: Something for the weekend?

  • jfealy

    Member
    March 19, 2024 at 11:00 am

    One thing to consider is that the seed value for the derived function means any leading blanks will be removed. Can use prev

    q){x where not(&':)" "=x}s:" the quick brown fox " 
    "the quick brown fox " 
    q){x where not n&prev n:null x}s 
    " the quick brown fox "