Ad
  • Custom User Avatar

    There's another kata kicking around somewhere (forget what it's called) that does just this. You end up overriding the function's valueOf function to return the final result. Then you don't have to muck around with the weird command parenthesis and you can just do say('Hi')('Tom') and say('Hi')('Tom')('Jones') to get what you'd expect.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Anyone have an answer to this question?! We are trying to figure out how to make this recursive somehow as well...