From 1db43c7234acb9554e3e80bf2e7b61c4cf0435cf Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 2 Sep 2020 19:59:50 +0300 Subject: [PATCH] Add string.add(openarray[char]) (to be optimized later) --- stew/shims/strings.nim | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 stew/shims/strings.nim diff --git a/stew/shims/strings.nim b/stew/shims/strings.nim new file mode 100644 index 0000000..054cb07 --- /dev/null +++ b/stew/shims/strings.nim @@ -0,0 +1,4 @@ +proc add*(str: var string, chars: openarray[char]) = + for c in chars: + str.add c +