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

groupWith omits value #410

Closed
mirrec opened this issue Apr 1, 2020 · 1 comment
Closed

groupWith omits value #410

mirrec opened this issue Apr 1, 2020 · 1 comment
Assignees

Comments

@mirrec
Copy link

mirrec commented Apr 1, 2020

Hello,

thank you for this library, I really like it.
I have found surprising behavior of groupWith function.

Example:

import * as R from 'rambda'

R.groupWith(R.equals, [1, 2, 2, 3]))
// => result: [[1], [2, 2]]
// => expected: [[1], [2, 2], [3]]

Do you know about this behavior? Because I have found example over here. https://github.com/selfrefactor/rambda/blob/master/files/failing_ramda_tests/groupWith.js

Tested on versions 4.5.0 and 5.0.0.

@selfrefactor
Copy link
Owner

Thank you for reporting this bug. It is fixed in the new 5.1.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants