aboutsummaryrefslogtreecommitdiff
path: root/src/utils.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.odin')
-rw-r--r--src/utils.odin10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils.odin b/src/utils.odin
new file mode 100644
index 0000000..1ef26eb
--- /dev/null
+++ b/src/utils.odin
@@ -0,0 +1,10 @@
+package main
+
+import "core:slice"
+import "core:strings"
+
+concatenate :: proc(old_array: [dynamic]string) -> string {
+ new_array := slice.clone(old_array[:])
+ defer delete(new_array)
+ return strings.concatenate(new_array)
+} \ No newline at end of file