authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-12-14 21:24:00-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-12-14 21:24:00-05:00
log68f63323437e1b974be7a9982f5d70b95624878b
treeecc51af4f747a06da5247e97ae12fc4b76dbc1c9
parent6bc0561d13556c50737ea0fa24af5c9468bba17a

fix missing import from previous commit


1 files changed, 1 insertions(+), 0 deletions(-)

std/sort.zig+1
...@@ -2,6 +2,7 @@ const std = @import("index.zig");...@@ -2,6 +2,7 @@ const std = @import("index.zig");
2const assert = std.debug.assert;2const assert = std.debug.assert;
3const mem = std.mem;3const mem = std.mem;
4const math = std.math;4const math = std.math;
5const builtin = @import("builtin");
56
6/// Stable in-place sort. O(n) best case, O(pow(n, 2)) worst case. O(1) memory (no allocator required).7/// Stable in-place sort. O(n) best case, O(pow(n, 2)) worst case. O(1) memory (no allocator required).
7pub fn insertionSort(comptime T: type, items: []T, lessThan: fn(lhs: &const T, rhs: &const T)->bool) {8pub fn insertionSort(comptime T: type, items: []T, lessThan: fn(lhs: &const T, rhs: &const T)->bool) {