import { curry , Predicate } from '@typed/lambda' ; export const filter = curry ( __filter ) ; async function * __filter < A > ( predicate , asyncIterable ) { for await ( const x of asyncIterable ) { if ( predicate ( x ) ) { yield x ; } } }