How to trim the last character from a string in Nim

The result of running:

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

is:

Batma

Comments

January 26, 2021 19:01

let s = "Batman" echo s[0..4]

Leave a comment

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