diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-12-19 09:14:05 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-12-19 09:14:05 +0900 |
| commit | 534de244065333c97ed11e70e4d8bb49ef0d2566 (patch) | |
| tree | da55dec9ecf911af3fafa915fea4f24a4a999ed6 /src | |
| parent | リスト関連の操作を強化 (diff) | |
| download | sharkey-534de244065333c97ed11e70e4d8bb49ef0d2566.tar.gz sharkey-534de244065333c97ed11e70e4d8bb49ef0d2566.tar.bz2 sharkey-534de244065333c97ed11e70e4d8bb49ef0d2566.zip | |
Use consistent naming convention
Diffstat (limited to 'src')
| -rw-r--r-- | src/prelude/array.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/prelude/array.ts b/src/prelude/array.ts index 5a8f36450a..aefc7b3a5b 100644 --- a/src/prelude/array.ts +++ b/src/prelude/array.ts @@ -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[] { |