()
| 130 | * @since 0.24.0 |
| 131 | */ |
| 132 | export const getSemigroupSome = <A>(): Semigroup<Predicate.Predicate<A>> => |
| 133 | semigroup.make<Predicate.Predicate<A>>( |
| 134 | Predicate.or, |
| 135 | (self, collection) => (a) => { |
| 136 | if (self(a)) { |
| 137 | return true |
| 138 | } |
| 139 | for (const p of collection) { |
| 140 | if (p(a)) { |
| 141 | return true |
| 142 | } |
| 143 | } |
| 144 | return false |
| 145 | } |
| 146 | ) |
| 147 | |
| 148 | /** |
| 149 | * @category instances |
no test coverage detected
searching dependent graphs…