-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setoid example #82
Comments
Yeah. It's too bad you have to keep defining your own equality function for everything in JS. Especially since it's generally considered a bad practice to modify native prototypes. |
I think that the examples are written in JS to make it easier to understand, but they're not the best practices nor intended to be. They're just to clarify any doubt left in the description of the functional programming term. |
I think the code we display should be moderately practical. It can be On Wed, Jul 27, 2016, 5:23 AM Matteo Ferrando notifications@github.com
|
Well, this is code that can be copied. |
The example of setoid uses equality between the elements of the array but it assumes there's an equality operator (
==
) between the elements of the setoid.I would do the following:
The text was updated successfully, but these errors were encountered: