8 lvl of kata...
This comment is hidden because it contains spoiler information about the solution
I like katas that teach me something. (I am thinking of the Ruby version). Good one!
Read the post of jurrrus below, the test is ok.
test.assert_equals(args_count(32, a1=12), 2)
in this test error occurs due to a1....
First time I've ever been convinced lambdas have a purpose. +1
PHP translation kumited! Please check it 🙂
An object with multiple properties is still one argument. e.g. A string object "abc" is one argument, despite having properties for length and chars. The ruby translation does not reflect this.
Thank you for your translation, approved