From 534de244065333c97ed11e70e4d8bb49ef0d2566 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Wed, 19 Dec 2018 09:14:05 +0900 Subject: [PATCH] Use consistent naming convention --- src/prelude/array.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prelude/array.ts b/src/prelude/array.ts index 5a8f36450..aefc7b3a5 100644 --- a/src/prelude/array.ts +++ b/src/prelude/array.ts @@ -22,8 +22,8 @@ export function erase(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(includes: T[], excludes: T[]): T[] { - return includes.filter(x => !excludes.includes(x)); +export function difference(xs: T[], ys: T[]): T[] { + return xs.filter(x => !ys.includes(x)); } export function unique(xs: T[]): T[] {