stdlib: Export only what's needed from std::sort
This commit is contained in:
parent
2fc0bedc83
commit
04ce99b83c
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
import vec::len;
|
||||
import vec::slice;
|
||||
|
||||
export lteq;
|
||||
export merge_sort;
|
||||
export quick_sort;
|
||||
|
||||
type lteq[T] = fn(&T a, &T b) -> bool;
|
||||
|
||||
fn merge_sort[T](lteq[T] le, vec[T] v) -> vec[T] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue