samhh / fp-ts-std

The missing pseudo-standard library for fp-ts.
https://samhh.github.io/fp-ts-std/
MIT License
207 stars 27 forks source link

allPassM / anyPassM / nonePassM #129

Closed samhh closed 2 years ago

samhh commented 2 years ago

Following #128, these can be defined roughly as:

allPass fs x = andM $ flap fs x
samhh commented 2 years ago

Can't be defined so cleanly considering laziness, I think.

https://github.com/samhh/fp-ts-std/commit/cffc2b81e048bd334b8ecb127ed824eaddb7ee4a & https://github.com/samhh/fp-ts-std/commit/15f451d35a12f2cc299e0412dd23e37b17c56a20 & https://github.com/samhh/fp-ts-std/commit/832f81fee7d1c7354bfd71b02a1dfd89fbc8b002