import { List , Predicate } from '../types' ; import { curry2 } from '@typed/functions' ; import { not } from '../not' ; name export const all = curry2 ( __all ) ; function __all < A > ( predicate , list ) { for ( let i = 0 ; i < list . length ; ++ i ) if ( not ( predicate ( list [ i ] ) ) ) return false ; return true ; }