aboutsummaryrefslogtreecommitdiff
path: root/core/slice/slice.odin
Commit message (Collapse)AuthorAgeFilesLines
* import cleanupjakubtomsu6 days1-3/+1
|
* nbio: add packageLaytan Laats2026-01-111-0/+36
|
* Add missing 'caller_location' to several procedures in 'slice' packageDarathDev2025-12-281-16/+16
|
* Remove `contextless` from `slice.swap_with_slice`gingerBill2025-12-111-1/+1
|
* Add `"contextless"` where possible in `core:slice`gingerBill2025-12-111-36/+37
|
* Further overhaul of package line comments.Jeroen van Rijn2025-10-091-1/+1
|
* More package lines.Jeroen van Rijn2025-10-091-0/+1
|
* 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
|
* 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
|
* 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
|
* 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-281-3/+3
|
* 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.
* 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-281-12/+18
|
* Fix typogingerBill2023-05-251-1/+1
|
* Add missing `Allocator_Error` and `@(require_results)` to many proceduresgingerBill2023-05-221-19/+67
|
* Fix `slice.reverse`gingerBill2023-01-271-2/+1
|
* Fix non-generic cast in core:slice.rotate_leftAndrea Piseri2022-12-211-1/+1
|
* Fix `core:slice.rotate_left`Andrea Piseri2022-12-211-3/+5
| | | | | | | 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
* 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
|