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

concat_with is not curried correctly #31

Open
harmenjanssen opened this issue Jun 24, 2019 · 0 comments
Open

concat_with is not curried correctly #31

harmenjanssen opened this issue Jun 24, 2019 · 0 comments
Assignees

Comments

@harmenjanssen
Copy link
Member

It incorrectly passes array_slice(func_get_args(), 1) to partial when given <= 2 arguments.

This would be the correct call:

        return call_user_func(
            partial,
            concat_with,
            ...func_get_args()
        );

This needs a test.

@harmenjanssen harmenjanssen self-assigned this Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant