This commit is contained in:
syuilo
2023-09-20 16:44:12 +09:00
parent b9c6992aac
commit 8e2d47b2e8
5 changed files with 13 additions and 11 deletions

View File

@@ -3,7 +3,8 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { EndoRelation, Predicate } from './relation.js';
type EndoRelation<T> = (a: T, b: T) => boolean;
type Predicate<T> = (x: T) => boolean;
/**
* Count the number of elements that satisfy the predicate