diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-02 13:08:06 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-02 13:08:06 -0400 |
| commit | c73e96ff916209d74e2be9bd7d8de3758685ce4d (patch) | |
| tree | 8f902fea5b6790061e48600243f0f8faeded32dd /builtins/array.h | |
| parent | b6534ce34706d1a98584e5f916107d91da072346 (diff) | |
Add comparison operator <> and array method to sort by a custom
comparison function
Diffstat (limited to 'builtins/array.h')
| -rw-r--r-- | builtins/array.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtins/array.h b/builtins/array.h index 98638222..7b432194 100644 --- a/builtins/array.h +++ b/builtins/array.h @@ -56,7 +56,7 @@ void Array$insert(array_t *arr, const void *item, int64_t index, const TypeInfo *type); void Array$insert_all(array_t *arr, array_t to_insert, int64_t index, const TypeInfo *type); 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$sort(array_t *arr, closure_t comparison, const TypeInfo *type); void Array$shuffle(array_t *arr, const TypeInfo *type); void *Array$random(array_t arr); void Array$clear(array_t *array); |
