diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-08 13:00:29 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-08 13:00:29 -0500 |
| commit | 1677d7a1b901f9bf86b566de64339cefddf3c2bd (patch) | |
| tree | 508244819b1f20c3bf9254e8b8c3ff2fdfe2acfb /builtins/array.h | |
| parent | 06549741aa5139ba9f85c33a21f2ed672e1e094f (diff) | |
Fix negative index issue and add array:random()
Diffstat (limited to 'builtins/array.h')
| -rw-r--r-- | builtins/array.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtins/array.h b/builtins/array.h index 8b7b3b40..c61b03a2 100644 --- a/builtins/array.h +++ b/builtins/array.h @@ -51,6 +51,7 @@ void Array__insert_all(array_t *arr, array_t to_insert, int64_t index, const Typ void Array__remove(array_t *arr, int64_t index, int64_t count, const TypeInfo *type); void Array__sort(array_t *arr, const TypeInfo *type); void Array__shuffle(array_t *arr, const TypeInfo *type); +void *Array_random(array_t arr); void Array__clear(array_t *array, const TypeInfo *type); void Array__compact(array_t *arr, const TypeInfo *type); bool Array__contains(array_t array, void *item, const TypeInfo *type); |
