summaryrefslogtreecommitdiff
path: root/src/prelude/array.ts
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2018-12-19 10:02:58 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2018-12-19 10:02:58 +0900
commit624fd093f219d2f2eb20f566e3c5672d30639ce3 (patch)
tree62cde1bdbe0c693a4affc527b9aed41fa5ff58d7 /src/prelude/array.ts
parentAdd comments for prelude/array.ts (diff)
downloadsharkey-624fd093f219d2f2eb20f566e3c5672d30639ce3.tar.gz
sharkey-624fd093f219d2f2eb20f566e3c5672d30639ce3.tar.bz2
sharkey-624fd093f219d2f2eb20f566e3c5672d30639ce3.zip
Fix comment
Diffstat (limited to 'src/prelude/array.ts')
-rw-r--r--src/prelude/array.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/prelude/array.ts b/src/prelude/array.ts
index 00f0dc3445..21d18a0af4 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<T>(f: (x: T, y: T) => boolean, xs: T[]): T[][] {
const groups = [] as T[][];
@@ -75,7 +75,7 @@ export function groupBy<T>(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<T, S>(f: (x: T) => S, xs: T[]): T[][] {
return groupBy((a, b) => f(a) === f(b), xs);