From f64aaf5960287f776232f909e145ac3f72fec73c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 13 Jul 2024 18:05:14 -0400 Subject: Add array:pairs() --- builtins/array.h | 1 + 1 file changed, 1 insertion(+) (limited to 'builtins/array.h') diff --git a/builtins/array.h b/builtins/array.h index 56794a22..1b7fa4cb 100644 --- a/builtins/array.h +++ b/builtins/array.h @@ -69,6 +69,7 @@ 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); +closure_t Array$pairs(array_t x, bool self_pairs, bool ordered, const TypeInfo *type); uint32_t Array$hash(const array_t *arr, const TypeInfo *type); int32_t Array$compare(const array_t *x, const array_t *y, const TypeInfo *type); bool Array$equal(const array_t *x, const array_t *y, const TypeInfo *type); -- cgit v1.2.3