KX Community

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

Home Forums kdb+ Why does the amend form of dot operator creates a projecttion like the line in .u.rep: (.[;();:;].)each x? Shouldn’t it apply the function to every item in x since we do "each"? Thank you! Re: Why does the amend form of dot operator creates a projecttion like the line in .u.rep: (.[;();:;].)each x? Shouldn’t it apply the function to every item in x since we do "each"? Thank y

  • gyorokpeter-kx

    Member
    February 27, 2023 at 12:00 am

    Can you provide more details such as what you are trying to achieve and what the value of x is?

    A projection is created whenever there is an elided argument in the argument list, no matter what the argument list is being applied to. In fact this allows you to create projections that have no useful purpose such as f:{x}[;;2] which will always either return another projection or throw a ‘rank error.