diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-12-28 17:30:04 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-12-28 17:30:04 -0500 |
| commit | fedc4b0ead8f7874120c6e86aaa971a790faea1f (patch) | |
| tree | 2973f9691b72c97a9cc80fd75c4db8e2e2c59e63 /src/stdlib/lists.c | |
| parent | 469030e9686e81c520c2ecbeab703a07361f51a4 (diff) | |
| parent | cfce376f585e0cd0231e95843617f75bd65b6c07 (diff) | |
Merge branch 'dev' into static-dependencies
Diffstat (limited to 'src/stdlib/lists.c')
| -rw-r--r-- | src/stdlib/lists.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/stdlib/lists.c b/src/stdlib/lists.c index 3149cf82..3cc99b17 100644 --- a/src/stdlib/lists.c +++ b/src/stdlib/lists.c @@ -441,10 +441,14 @@ List_t List$sample(List_t list, Int_t int_n, List_t weights, OptionalClosure_t r } public -List_t List$from(List_t list, Int_t first) { return List$slice(list, first, I_small(-1)); } +List_t List$from(List_t list, Int_t first) { + return List$slice(list, first, I_small(-1)); +} public -List_t List$to(List_t list, Int_t last) { return List$slice(list, I_small(1), last); } +List_t List$to(List_t list, Int_t last) { + return List$slice(list, I_small(1), last); +} public List_t List$by(List_t list, Int_t int_stride, int64_t padded_item_size) { @@ -555,7 +559,9 @@ bool List$has(List_t list, void *item, const TypeInfo_t *type) { } public -void List$clear(List_t *list) { *list = list->atomic ? EMPTY_ATOMIC_LIST : EMPTY_LIST; } +void List$clear(List_t *list) { + *list = list->atomic ? EMPTY_ATOMIC_LIST : EMPTY_LIST; +} public int32_t List$compare(const void *vx, const void *vy, const TypeInfo_t *type) { |
