diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-29 20:48:08 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-29 20:48:08 +0000 |
| commit | 43be91bca3bb58dab35506a3f587d6e5ceb4015b (patch) | |
| tree | 86de31beea2f0699ba65a279e1ced14c1e267325 /code | |
| parent | 984e36a15147cb4ed681174fb1f97f4e1735411d (diff) | |
Variadic `append`
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/code/demo.odin b/code/demo.odin index 32ff09d33..c52e70f98 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -14,12 +14,7 @@ main :: proc() { defer free(array); reserve(^array, 10); - append(^array, 2); - append(^array, 3); - append(^array, 5); - append(^array, 7); - append(^array, 11); - append(^array, 13); + append(^array, 2, 3, 5, 7, 11, 13); for val, idx in array { fmt.println(val, idx); } |