KX Community

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

Home Forums KX Academy partitioned exercise question

  • partitioned exercise question

    Posted by lestat-jin on June 27, 2024 at 10:13 pm

    from the level 3 partitioned exercise:<b style=”background-color: var(–bb-content-background-color); font-family: inherit; font-size: inherit; color: var(–bb-body-text-color);”> allPaths

    given solution: allPaths:{[dir]sv'dir,'k where(k:key dir)like"[0-9]*"}</i></b></p><p>my functional solution: <b><i>allPaths: {[dir] sv[; ‘dir, ‘k where (k: key dir) like “[0-9]*”]}

    which returned stype evaluation error, due to the ‘ in front of dir.

    It makes sense to remove the ‘ before dir and keep the one in front of k, given dir should only has one element and k can be a list ( and so the “each”). just wondering why is it in the solution that there is the ‘ between sv and dir, and that it works?

    Thanks,

    lestat-jin replied 2 weeks, 4 days ago 2 Members · 7 Replies
  • 7 Replies
  • lestat-jin

    Member
    June 27, 2024 at 10:15 pm

    apologies for the formatting issue, no idea how to fix it…

  • megan_mcp

    Administrator
    June 28, 2024 at 12:28 pm

    Hi @lestat-jin

    Apologies for the formatting issue on our side, we are working to fix this for future discussions.

    Would you be able to send a screenshot of the code so we can help better assist you?

    Thanks,

    Megan

Log in to reply.