Comments (2)
I'd argue this falls under:
Note that some functions are not one-to-one replacements, but rather bequeath a better pattern in code.
Most types have Eq
instances upstream which in turn can be used with combinators like A.getEq
to achieve similar results without the magic. In this case you could substitute with:
const equals3: Predicate<number> = x => Num.Eq.equals(x, 3)
const all3: Predicate<Array<number>> = A.every(equals3)
The use of Eq
over ===
here isn't strictly necessary however it expresses how much more powerful Eq
is for more complex data types with more nuanced notions of equivalence.
from fp-ts-std.
I guess thats ok.
from fp-ts-std.
Related Issues (20)
- More tuple operators HOT 1
- Unwrapping errors should always throw an `Error` object HOT 3
- fp-ts backports HOT 2
- get for struct
- Monadic memptyWhen/Unless HOT 1
- Do & apS HOT 1
- `pass` HOT 1
- `Struct.getEnum`
- `pass` doesn't widen additional type arguments HOT 1
- Real ESM support HOT 9
- process module
- Many URLPath functions should exist in URL too HOT 1
- `N.fromString()` should not use `Number.parseInt()` HOT 2
- Unable to import fp-ts-std HOT 6
- URLPath origin/base can be lost HOT 1
- Split S.merge into mergeFirst and mergeSecond
- URLPath.clone HOT 1
- Sub-100% coverage
- `URLPath.fromString` parses its arguments as a relative reference rather than a path. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fp-ts-std.