diff options
author | San Jacobs | 2023-05-16 22:28:37 +0200 |
---|---|---|
committer | San Jacobs | 2023-05-16 22:28:37 +0200 |
commit | e12cbc76905216c33d280950f20283df1281b618 (patch) | |
tree | 55ccbab26257bfb460053dbd983bee423c4536ce /src/utils.odin | |
parent | ca6fdc3d98bfca6414ff9e14aab92f0094e2890e (diff) | |
download | satscalc-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.odin | 10 |
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 |