How to trim the last character from a string in Nim

The result of running:

let s = "Batman"
echo s[.. ^2]

is:

Batma

Comments

Leave a comment

What color are brown eyes? (spam prevention)
Submit
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.