summaryrefslogtreecommitdiff
path: root/tnslc/util.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/util.tnsl')
-rw-r--r--tnslc/util.tnsl12
1 files changed, 2 insertions, 10 deletions
diff --git a/tnslc/util.tnsl b/tnslc/util.tnsl
index 4e2849b..5d84dec 100644
--- a/tnslc/util.tnsl
+++ b/tnslc/util.tnsl
@@ -32,18 +32,10 @@
;return true
;/
-/; add_strings (~{}charp a, b) [{}charp]
- ;{}charp out = ""
-
- /; loop (int i = 0; i < len a`) [i++]
- ;out.append(a`{i})
- ;/
-
+/; add_strings (~{}charp a, b)
/; loop (int i = 0; i < len b`) [i++]
- ;out.append(b`{i})
+ ;a`.append(b`{i})
;/
-
- ;return out
;/
/; reverse_string({}charp str) [{}charp]