RosettaCodeData/Task/String-append/Nim/string-append.nim

4 lines
68 B
Nim

var str = "123456"
str.add("78") # two ways
str &= "9!" # to append