Skip to content
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

allEqualTo #525

Closed
guillaumearm opened this issue Apr 28, 2018 · 2 comments
Closed

allEqualTo #525

guillaumearm opened this issue Apr 28, 2018 · 2 comments
Assignees
Milestone

Comments

@guillaumearm
Copy link
Collaborator

We talked about allEqualTo in PR #513

Implementation :

const allEqualTo = R.curry((x, arr) => (
  R.all(R.equals(x), arr)
));

allEqualTo(42, [42, 42, 42]) // => true
allEqualTo(21, [42, 42, 42]) // => false
@Undistraction
Copy link
Collaborator

Undistraction commented Apr 28, 2018

It has my vote. Guess we would also want a RA.notAllEqualTo alongside.

@char0n char0n added this to the 2.10.0 milestone May 30, 2018
char0n added a commit that referenced this issue Oct 15, 2018
char0n added a commit that referenced this issue Oct 15, 2018
@guillaumearm
Copy link
Collaborator Author

and what about anyEqualTo and anyIdenticalTo ?

char0n added a commit that referenced this issue Oct 22, 2018
char0n added a commit that referenced this issue Oct 22, 2018
char0n added a commit that referenced this issue Oct 22, 2018
char0n added a commit that referenced this issue Oct 28, 2018
char0n added a commit that referenced this issue Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants