From 47ba59a6ed35b074b1680918546bec521e68981b Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Wed, 19 Dec 2018 10:02:58 +0900 Subject: [PATCH] Fix comment --- 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 00f0dc344..21d18a0af 100644 --- a/src/prelude/array.ts +++ b/src/prelude/array.ts @@ -59,7 +59,7 @@ export function maximum(xs: number[]): number { /** * Splits an array based on the equivalence relation. - * The concatenation of the result equals to the argument. + * The concatenation of the result is equal to the argument. */ export function groupBy(f: (x: T, y: T) => boolean, xs: T[]): T[][] { const groups = [] as T[][]; @@ -75,7 +75,7 @@ export function groupBy(f: (x: T, y: T) => boolean, xs: T[]): T[][] { /** * Splits an array based on the equivalence relation induced by the function. - * The concatenation of the result equals to the argument. + * The concatenation of the result is equal to the argument. */ export function groupOn(f: (x: T) => S, xs: T[]): T[][] { return groupBy((a, b) => f(a) === f(b), xs);