UNPKG

fp-ts-std

Version:

The missing pseudo-standard library for fp-ts.

10 lines (9 loc) 210 B
export function when(F) { return b => x => (b ? x : F.of(undefined)); } export function unless(F) { return b => x => (b ? F.of(undefined) : x); } export function pass(F) { return F.of(undefined); }