fp-ts-std icon indicating copy to clipboard operation
fp-ts-std copied to clipboard

Conditional laziness

Open samhh opened this issue 3 years ago • 0 comments

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.

samhh avatar Aug 05 '22 17:08 samhh