Implement Array#sort (#57)

This commit is contained in:
Max Graey
2018-04-04 01:42:23 +03:00
committed by Daniel Wirtz
parent 37825fc84d
commit c45a35b1c1
8 changed files with 3734 additions and 542 deletions

1
std/assembly.d.ts vendored
View File

@ -304,6 +304,7 @@ declare class Array<T> {
slice(from: i32, to?: i32): T[];
splice(start: i32, deleteCount?: i32): void;
reverse(): T[];
sort(comparator?: (a: T, b: T) => i32): T[];
}
/** Class representing a C-like array of values of type `T` with limited capabilities. */