Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
305 bytes
|
Line | |
---|
1 | export as namespace stable;
|
---|
2 | export = stable;
|
---|
3 |
|
---|
4 | type Comparator<T> = ((a : T, b : T)=>boolean) | ((a: T, b : T)=>number);
|
---|
5 |
|
---|
6 | declare function stable<T>(array : T[], comparator? : Comparator<T>) : T[];
|
---|
7 | declare namespace stable {
|
---|
8 | export function inplace<T>(array: T[], comparator? : Comparator<T>) : T[];
|
---|
9 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.