-
Notifications
You must be signed in to change notification settings - Fork 0
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
Provide Eq instance (getEq) #1
Comments
Hi! The No, there was no specific reason to not to include a I think it would be something like this: const getEq: <A>(E: Eq<A>) => <N extends number>() => Eq<Vec<N, A>> = (
E
) => () => array.getEq(E) Thanks for posting this. PR's are always welcome :) |
Also created this one: |
Thanks for letting me know about read-only array feature. I decided that I only needed one size and thus I opted out of this library for now. Glad it was worth marking this in the number library. |
Yes, this makes sense. I actually had in mind to create a library that provides the fixed sized vectors. (Vec2, Vec3). In future there should be easy conversion between those types by adding |
I'm very new to fp-ts so I hope I'm not overlooking something obvious here. I'm looking for how to implement a fp-ts compatible equality operation for the sized vectors. I tried this
and this complains that a
number[]
can't be assigned to Vec<2, number>. Is there a particular reason why this library doesn't seem to implement equality for the vectors?The text was updated successfully, but these errors were encountered: