export type Predicate = (item: T) => boolean;