-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Samchon
committed
Mar 22, 2018
1 parent
68679b4
commit 469a52e
Showing
43 changed files
with
317 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
"email": "[email protected]", | ||
"url": "http://samchon.org" | ||
}, | ||
"version": "1.7.10-dev.20180321", | ||
"version": "1.7.10", | ||
"main": "./lib/tstl.js", | ||
"typings": "./lib/tstl.d.ts", | ||
"scripts": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
namespace std.base | ||
{ | ||
export interface _IListAlgorithm<T, Source> | ||
{ | ||
/* --------------------------------------------------------- | ||
UNIQUE & REMOVE | ||
--------------------------------------------------------- */ | ||
/** | ||
* Remove duplicated elements. | ||
* | ||
* @param binary_pred A binary function predicates two arguments are equal. Default is {@link equal_to}. | ||
*/ | ||
unique(binary_pred?: (x: T, y: T) => boolean): void; | ||
|
||
/** | ||
* Remove elements with specific value. | ||
* | ||
* @param val The value to remove. | ||
*/ | ||
remove(val: T): void; | ||
|
||
/** | ||
* Remove elements with specific function. | ||
* | ||
* @param pred A unary function determines whether remove or not. | ||
*/ | ||
remove_if(pred: (val: T) => boolean): void; | ||
|
||
/* --------------------------------------------------------- | ||
SEQUENCE | ||
--------------------------------------------------------- */ | ||
/** | ||
* Merge two *sorted* containers. | ||
* | ||
* @param source Source container to transfer. | ||
* @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}. | ||
*/ | ||
merge(from: Source, comp?: (x: T, y: T) => boolean): void; | ||
|
||
/** | ||
* Sort elements. | ||
* | ||
* @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}. | ||
*/ | ||
sort(comp?: (x: T, y: T) => boolean): void; | ||
|
||
/** | ||
* Reverse elements. | ||
*/ | ||
reverse(): void; | ||
|
||
/** | ||
* Swap elements. | ||
* | ||
* @param obj Target container to swap. | ||
*/ | ||
swap(obj: Source): void; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.