Closed someonewithpc closed 4 years ago
In lodash this function is called ary
(https://lodash.com/docs/4.17.15#ary). What do you think?
Maybe arity(callable, int): callable
, then?
I would just follow lodash‘s naming precedence
@lstrojny Renamed the function and added tests (the build fail seems to be unrelated and fixed by my other PR)
Care to document the function in the docs as well?
@lstrojny added documentation to the tests commit.
Great, thank you!
One last thing, can you check https://travis-ci.org/github/lstrojny/functional-php/jobs/691301121 and fix the coding style errors, then we are ready to merge this
How does it check those? I ran php-cs-fixer (from vendor/bin) and it didn't fiz it
How does it check those? I ran php-cs-fixer (from vendor/bin) and it didn't fiz it
That PHP code sniffer. Run phpcs
to see the errors.
Ok, should be ready to merge, now
Great, thank you!
Added function which defines a function of an arbitry number of arguments and calls the provided callable with only the given number of arguments
Didn't add tests as it wasn't obvious how they worked and wanted feedback before investing the time