From b0faa5adc2c5f56ae50cf21f855fa6805db926cf Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 19 Dec 2024 13:50:35 -0500 Subject: Add Text:from()/to() and Array:slice() for symmetry --- stdlib/arrays.h | 1 + 1 file changed, 1 insertion(+) (limited to 'stdlib/arrays.h') 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); -- cgit v1.2.3