fp-ts-std
fp-ts-std copied to clipboard
Conditional laziness
The likes of pureIf and memptyWhen should probably take lazy values. Whilst they're usually used in lambdas with some laziness, they'd ideally delay computing the lifted value until the condition passes. It mightn't make sense for applicative when where it's for effectful computation.