1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-12 05:38:12 +09:00

Use consistent naming convention

This commit is contained in:
Aya Morisawa 2018-12-19 09:14:05 +09:00
parent e88ce1746d
commit 534de24406
No known key found for this signature in database
GPG Key ID: 3E64865D70D579F2

View File

@ -22,8 +22,8 @@ export function erase<T>(x: T, xs: T[]): T[] {
* Finds the array of all elements in the first array not contained in the second array.
* The order of result values are determined by the first array.
*/
export function difference<T>(includes: T[], excludes: T[]): T[] {
return includes.filter(x => !excludes.includes(x));
export function difference<T>(xs: T[], ys: T[]): T[] {
return xs.filter(x => !ys.includes(x));
}
export function unique<T>(xs: T[]): T[] {