diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-12-19 13:50:35 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-12-19 13:50:35 -0500 |
| commit | b0faa5adc2c5f56ae50cf21f855fa6805db926cf (patch) | |
| tree | f79e21230108b45843c0bf21c32b08d814802917 /stdlib/arrays.h | |
| parent | 1db70d46c62c9478ea84ccff204fb315136e518c (diff) | |
Add Text:from()/to() and Array:slice() for symmetry
Diffstat (limited to 'stdlib/arrays.h')
| -rw-r--r-- | stdlib/arrays.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/arrays.h b/stdlib/arrays.h index e880c643..5e0ca7e4 100644 --- a/stdlib/arrays.h +++ b/stdlib/arrays.h @@ -83,6 +83,7 @@ PUREFUNC bool Array$has(Array_t array, void *item, const TypeInfo_t *type); PUREFUNC Array_t Array$from(Array_t array, Int_t first); PUREFUNC Array_t Array$to(Array_t array, Int_t last); PUREFUNC Array_t Array$by(Array_t array, Int_t stride, int64_t padded_item_size); +PUREFUNC Array_t Array$slice(Array_t array, Int_t int_first, Int_t int_last); PUREFUNC Array_t Array$reversed(Array_t array, int64_t padded_item_size); Array_t Array$concat(Array_t x, Array_t y, int64_t padded_item_size); PUREFUNC uint64_t Array$hash(const void *arr, const TypeInfo_t *type); |
