Skip to content
This repository was archived by the owner on Nov 7, 2020. It is now read-only.

Why require argument count of 1 in curryIt problem #101

Open
sang4lv opened this issue Nov 1, 2015 · 2 comments
Open

Why require argument count of 1 in curryIt problem #101

sang4lv opened this issue Nov 1, 2015 · 2 comments

Comments

@sang4lv
Copy link

sang4lv commented Nov 1, 2015

I'm wondering if there is any significance of having the returned function to have an argument count of 1.

I worked out a simple solution in 6 lines, which contains returning an already bound function. Since the bound function would have an argument length of 0, the test didn't pass.

@rmurphey
Copy link
Owner

rmurphey commented Nov 1, 2015

It's been a while since I looked at this, but I think you're right that checking for the argument count doesn't necessarily make sense; feel free to submit your solution as a pull request here!

@sang4lv
Copy link
Author

sang4lv commented Nov 3, 2015

I'd like to do that, but I would need to modify the test case first. Would you consider accept a pull request to modify js-assessment test case?

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

No branches or pull requests

2 participants