image/svg+xml
Home
/
Nim
/
How to trim the last character from a string in Nim
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 green eyes? (spam prevention)
Submit
The answer you provided is incorrect.
Your comment has been submitted successfully. Thank you!
Terms of use
Contact
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.
Leave a comment