Add string.add(openarray[char]) (to be optimized later)

This commit is contained in:
Zahary Karadjov 2020-09-02 19:59:50 +03:00
parent 4c695e5933
commit 1db43c7234
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 4 additions and 0 deletions

4
stew/shims/strings.nim Normal file
View File

@ -0,0 +1,4 @@
proc add*(str: var string, chars: openarray[char]) =
for c in chars:
str.add c