import { Predicate } from 'fp-ts/lib/function' ; import { monoidAllFoldMap } from './shared/monoidAllFoldMap' ; function _all < T > ( predicate , as ) { return monoidAllFoldMap ( predicate ) ( as ) ; } since export function all < T > ( predicate ) ; export function all < T > ( predicate , as ) ; export function all < T > ( predicate , as ? ) { if ( as === undefined ) { return as => _all ( predicate , as ) ; } else { return _all ( predicate , as ) ; } }