UNPKG

fp-ts

Version:

Functional programming in TypeScript

4 lines (3 loc) 102 B
export function guard(F, P) { return function (b) { return (b ? P.of(undefined) : F.zero()); }; }