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