aboutsummaryrefslogtreecommitdiff
path: root/core/slice
Commit message (Collapse)AuthorAgeFilesLines
* Add `slice.suffix_length`FourteenBrush2025-07-031-0/+19
|
* slice: use `card` in `bitset_to_enum_slice_with_make`Laytan Laats2025-02-241-2/+1
| | | | Fixes #4870
* docs: improved reinterpret docstringGiuliano Macedo2024-12-141-16/+35
|
* Add core:slice.size to get the byte size of a slice's backing dataBazzagibbs2024-11-111-0/+6
|
* Add slice.to_typeJeroen van Rijn2024-10-011-0/+11
|
* Merge pull request #4304 from kawaii-Code/linear_search_reverseLaytan2024-09-291-24/+125
|\ | | | | Add linear_search_reverse and linear_search_reverse_proc
| * Fix markup in `linear_search` and `binary_search` docsNia2024-09-291-45/+77
| |
| * Remove pointless `#no_bounds_check`Nia2024-09-291-4/+4
| |
| * Add linear_search_reverse and linear_search_reverse_procNia2024-09-251-0/+69
| |
* | Return Allocator_Error in map_entry_infosAntonino Simone Di Stefano2024-09-221-1/+1
| |
* | Remove address operator, which lead to a type errorAntonino Simone Di Stefano2024-09-221-2/+2
| |
* | Use package qualifier for type_info_base and Type_Info_mapAntonino Simone Di Stefano2024-09-211-1/+1
|/
* Moved all packages in core, base, vendor, tests and examples to use new #+ ↵Karl Zylinski2024-09-141-1/+1
| | | | file tag syntax.
* Check for zero-length slices in `slice.equal`Feoramund2024-09-031-0/+11
|
* Improve slice.binary_search_byJeroen van Rijn2024-08-101-3/+19
|
* Even more style fixesgingerBill2024-06-291-1/+1
|
* More style improvementsgingerBill2024-06-291-2/+1
|
* Fix `slice.unique` wrong resultSandro Cavazzoni2024-06-161-4/+8
| | | | | | | When you try to make this array unique `[]int{1, 2, 4, 4, 5}` you get `[]int{1, 4, 5}` instead of `[]int{1, 2, 4, 5}`. Our index `i` should be increased even with both indices `i` and `j` have the same value
* Add `#no_bounds_check` to `slice.equal`Damian Tarnawski2024-06-141-2/+2
|
* Add `slice.permute`Feoramund2024-06-091-0/+105
|
* Fix slice.has_prefix & slice.has_suffixkorvahkh2024-05-251-2/+2
| | | | The needle was the element type instead of the slice type.
* Add allocator param.Jeroen van Rijn2024-05-091-2/+2
|
* Simplify bitset_to_enum_sliceJeroen van Rijn2024-05-091-12/+3
|
* Pass new -vet-style check.Jeroen van Rijn2024-05-091-7/+12
|
* Add make version of bitset to slice.Jeroen van Rijn2024-05-091-2/+18
|
* Add slice.enum_slice_to_bitset & slice.bitset_to_enum_sliceJeroen van Rijn2024-05-091-0/+24
|
* fixed slice.unique and slice.unique_procAaron Kavaler2024-03-131-2/+2
|
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-284-8/+8
|
* Fixed type of temporary slice in sort_by_indices_overwriteFranz Höltermann2024-01-081-1/+1
|
* Remove random taggingerBill2023-12-131-2/+2
|
* Add `slice.unique` and `slice.unique_proc`gingerBill2023-12-131-0/+36
|
* Reimplement `binary_search_by` to be simplergingerBill2023-12-131-29/+11
|
* Fix the implementation of `binary_search_by` to work with a normal ↵gingerBill2023-12-131-12/+4
| | | | | | `ordering` call, rather than the backwards version. WHY THE HECK WAS IT THIS WAY IN THE FIRST PLACE?!
* RevertgingerBill2023-12-131-4/+12
|
* Use `cmp_proc` in `binary_search`gingerBill2023-12-131-12/+4
|
* Add to `core:slice` `reduce_reverse`, `filter_reverse`, `repeat`gingerBill2023-12-131-3/+42
|
* added #no_bounds_check back into binary_search_byMatija Dizdar2023-12-061-2/+1
|
* removed incorrect requirement for key type to be ordered in binary_search_byMatija Dizdar2023-12-061-1/+0
|
* Add min_index and max_index proceduresTarık B2023-11-261-0/+34
|
* Removed some accidental semi-colons and converted indentation to tabs.Hector2023-11-251-46/+46
|
* Binary search improvementsHector2023-11-251-33/+82
| | | | | | | | Modified the algorithm so that the index is either the location of the element if found or the index at which to insert the element to maintain sorted order. Also added some tests to verify the above claim.
* [core]: Remove `do` keyword from the core libraryflysand72023-11-111-3/+9
|
* Make slice.clone and slice.clone_to_dynamic take a loc parameterKarl Zylinski2023-10-301-4/+4
|
* Replace `mem` with `runtime` in `core:slice`gingerBill2023-06-282-22/+28
|
* Fix typogingerBill2023-05-251-1/+1
|
* Add missing `Allocator_Error` and `@(require_results)` to many proceduresgingerBill2023-05-222-20/+75
|
* Remove `where ORD(E)` on procedures that don't need itgingerBill2023-03-141-2/+2
|
* Fix `slice.reverse`gingerBill2023-01-271-2/+1
|
* Add the inner `for` loop back in the logicAndrea Piseri2022-12-211-6/+16
| | | | | | This could be easier to predict in cases where one of `left` and `right` is significantly greater than the other, and as such the same branch is taken multiple times in a row
* Fix non-generic cast in core:slice.rotate_leftAndrea Piseri2022-12-211-1/+1
|