Search code examples
kdbq-lang

How do I remove the first or last n characters from a value in q/ kdbstudio?


I've looked into the underscore for drop/cut, but this only seems to remove the first or last n entries, not characters. Any ideas?


Solution

  • @Connor Gervin had almost what I wanted, but if you want to cast back to a string, you can use `$(-3)_'string sym from tab