diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-07-22 13:54:03 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-07-22 13:54:03 -0400 |
| commit | 7911df829428477c49b3a9c3c7efeb74a2608c84 (patch) | |
| tree | ee177adac9458a15a41716ed698483a076f910ca /builtins/array.h | |
| parent | 5b0a841db6f42a1ce840472f5ccbaef3699823f3 (diff) | |
Make sure array slicing doesn't require a pointer and disallow automatic
stackifying of values
Diffstat (limited to 'builtins/array.h')
| -rw-r--r-- | builtins/array.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtins/array.h b/builtins/array.h index 56794a22..d60483db 100644 --- a/builtins/array.h +++ b/builtins/array.h @@ -64,9 +64,9 @@ array_t Array$sample(array_t arr, int64_t n, array_t weights, const TypeInfo *ty void Array$clear(array_t *array); void Array$compact(array_t *arr, const TypeInfo *type); bool Array$contains(array_t array, void *item, const TypeInfo *type); -array_t Array$from(array_t *array, int64_t first); -array_t Array$to(array_t *array, int64_t last); -array_t Array$by(array_t *array, int64_t stride); +array_t Array$from(array_t array, int64_t first); +array_t Array$to(array_t array, int64_t last); +array_t Array$by(array_t array, int64_t stride); array_t Array$reversed(array_t array); array_t Array$concat(array_t x, array_t y, const TypeInfo *type); uint32_t Array$hash(const array_t *arr, const TypeInfo *type); |
