Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template cutRight(s: string, charsToCut: int): typed =
- s[0..^(charsToCut + 1)]
- echo cutRight("Hello World", 6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement