aboutsummaryrefslogtreecommitdiff
path: root/src/utils.odin
diff options
context:
space:
mode:
authorSan Jacobs2023-05-16 22:28:37 +0200
committerSan Jacobs2023-05-16 22:28:37 +0200
commite12cbc76905216c33d280950f20283df1281b618 (patch)
tree55ccbab26257bfb460053dbd983bee423c4536ce /src/utils.odin
parentca6fdc3d98bfca6414ff9e14aab92f0094e2890e (diff)
downloadsatscalc-e12cbc76905216c33d280950f20283df1281b618.tar.gz
satscalc-e12cbc76905216c33d280950f20283df1281b618.tar.bz2
satscalc-e12cbc76905216c33d280950f20283df1281b618.zip
Taking a massive W on this, got quite far on the odin port
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