()
| 157 | * @since 0.24.0 |
| 158 | */ |
| 159 | export const getSemigroupEvery = <A>(): Semigroup<Predicate.Predicate<A>> => |
| 160 | semigroup.make<Predicate.Predicate<A>>( |
| 161 | Predicate.and, |
| 162 | (self, collection) => (a) => { |
| 163 | if (!self(a)) { |
| 164 | return false |
| 165 | } |
| 166 | for (const p of collection) { |
| 167 | if (!p(a)) { |
| 168 | return false |
| 169 | } |
| 170 | } |
| 171 | return true |
| 172 | } |
| 173 | ) |
| 174 | |
| 175 | /** |
| 176 | * @category instances |
no test coverage detected
searching dependent graphs…