nim-stew/stew/shims/strings.nim

4 lines
85 B
Nim

func add*(str: var string, chars: openArray[char]) =
for c in chars:
str.add c