refactor
This commit is contained in:
parent
b9c6992aac
commit
8e2d47b2e8
5 changed files with 13 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue