Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template cutRight(s: string, charsToCut: Natural): string =
- s[0 .. ^(charsToCut + 1)]
- template cutLeft(s: string, charsToCut: Natural): string =
- s[charsToCut .. ^1]
- template cutLeftRight(s: string, left, right: Natural): string =
- s[left .. ^(right + 1)]
Advertisement
Add Comment
Please, Sign In to add comment