diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-02 13:13:33 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-02 13:13:33 -0400 |
| commit | 95100469b6c7f301bb14bcda5dbc16b93c9ce0dc (patch) | |
| tree | f84837f45fdc90b3070bd17583329a89450f6f44 /builtins/array.h | |
| parent | c73e96ff916209d74e2be9bd7d8de3758685ce4d (diff) | |
Add array:sorted()
Diffstat (limited to 'builtins/array.h')
| -rw-r--r-- | builtins/array.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtins/array.h b/builtins/array.h index 7b432194..c6722e6d 100644 --- a/builtins/array.h +++ b/builtins/array.h @@ -57,6 +57,7 @@ void Array$insert(array_t *arr, const void *item, int64_t index, const TypeInfo 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, closure_t comparison, const TypeInfo *type); +array_t Array$sorted(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); |
