aboutsummaryrefslogtreecommitdiff
path: root/core/slice
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix `core:slice.rotate_left`Andrea Piseri2022-12-212-16/+10
| | | | | | | This commit includes two fixes: - a temporary cast to make the function compile - a fix to a logic error that caused the function to hang or return incorrect results
* Fix typo err: runtime.Allocator to Allocator_ErrorAndré (counter)2022-12-091-1/+1
|
* Correct reflection usage of mapsgingerBill2022-11-081-26/+22
|
* Update sort_private.odingingerBill2022-10-181-2/+3
|
* Use `uint` instead of `int` to improve code generation for bounds checkinggingerBill2022-09-271-2/+2
|
* Add `slice.enumerated_array`gingerBill2022-09-221-0/+7
|
* Correct slice/ptr.odin callsgingerBill2022-09-171-7/+9
|
* fix sort_by_indices_allocatePhil2022-09-071-1/+1
|
* fix sort_by_with_indices for zero and one length slices:Phil2022-09-011-2/+2
|
* add sort_by_indices overload and testPhil2022-09-011-1/+11
|
* add tests for sort_by_indicesPhil2022-09-011-1/+2
|
* cleanup slice sorting with indices changesPhil2022-09-011-3/+3
|
* have sort_with_indices allocate. Add a couple convenience procs for using ↵Phil2022-09-011-5/+28
| | | | the indices result to sort other slices.
* add sort_with_indices family of procsPhil2022-08-312-0/+205
|
* Fix #1972gingerBill2022-08-241-2/+2
|
* Add `strings.prefix_length` & `slice.prefix_length`Jeroen van Rijn2022-06-161-0/+15
|
* Minor changes to `core:slice/heap`; add to examples/allgingerBill2022-06-121-24/+24
|
* Merge pull request #1830 from graphitemaster/dale/max_heapgingerBill2022-06-121-0/+231
|\ | | | | add max heap implementation to slice package
| * fixDale Weiler2022-06-041-2/+1
| |