aboutsummaryrefslogtreecommitdiff
path: root/core/slice/slice.odin
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix #1972gingerBill2022-08-241-2/+2
|
* Add `strings.prefix_length` & `slice.prefix_length`Jeroen van Rijn2022-06-161-0/+15
|
* Duplicate some basic slice procedures from core:mem into core:sliceTetralux2022-04-181-0/+47
|
* Add more things to `package slice`gingerBill2022-03-081-5/+96
| | | | | | | | min_max any_of(_proc) none_of(_proc) all_of(_proc) count(_proc)
* Add `slice.stable_sort*` proceduresgingerBill2022-01-311-12/+12
|
* use multipointers instead of simple pointersAndrea Piseri2021-12-281-11/+7
|
* Merge branch 'master' into slice_scannerAndrea Piseri2021-12-281-1/+1
|\
| * make `slice.as_ptr` return `[^]E`gingerBill2021-12-281-1/+1
| |
* | Add slice/scanner procAndrea Piseri2021-12-231-0/+21
|/
* Rename slice.to_dynamic to slice.clone_to_dynamicTetralux2021-12-211-2/+3
|
* add builtin.Michael Kutowski2021-11-191-1/+1
|
* Add `slice.swap_between`gingerBill2021-10-261-1/+8
|
* Make core and vendor adhere to `-vet`, `-strict-style`, and `-disallow-do`gingerBill2021-09-111-3/+7
|
* Remove unneeded semicolons from the core librarygingerBill2021-08-311-105/+105
|
* Enforce `core:builtin` and `core:intrinsics` for importsgingerBill2021-08-211-2/+2
|
* Use builtin.min and builtin.max in package slicegingerBill2021-07-091-2/+2
|
* Add `slice.min` and add `slice.max`gingerBill2021-07-081-0/+24
|
* Fix typogingerBill2021-04-141-2/+2
|
* Fix typogingerBill2021-04-131-1/+1
|
* Fix typogingerBill2021-04-121-1/+1
|
* Fix typogingerBill2021-03-291-1/+1
|
* Fix slice.concatenategingerBill2021-02-271-1/+1
|
* Minor cleanup of slice/slice.odin codegingerBill2021-01-091-1/+11
|
* Add more procedures to `package slice`gingerBill2020-11-061-0/+41
|
* Fix slice.last()Tetralux2020-11-051-1/+1
| | | | There was a typo that prevented it from being used.
* Add `package slice`; New `sort.Interface` with default `sort.sort`gingerBill2020-10-141-0/+254