| author | |
| committer | |
| log | 68f63323437e1b974be7a9982f5d70b95624878b |
| tree | ecc51af4f747a06da5247e97ae12fc4b76dbc1c9 |
| parent | 6bc0561d13556c50737ea0fa24af5c9468bba17a |
1 files changed, 1 insertions(+), 0 deletions(-)
std/sort.zig+1| ... | ... | @@ -2,6 +2,7 @@ const std = @import("index.zig"); |
| 2 | 2 | const assert = std.debug.assert; |
| 3 | 3 | const mem = std.mem; |
| 4 | 4 | const math = std.math; |
| 5 | const builtin = @import("builtin"); | |
| 5 | 6 | |
| 6 | 7 | /// Stable in-place sort. O(n) best case, O(pow(n, 2)) worst case. O(1) memory (no allocator required). |
| 7 | 8 | pub fn insertionSort(comptime T: type, items: []T, lessThan: fn(lhs: &const T, rhs: &const T)->bool) { |