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

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

  • Custom User Avatar

    How to generalise the function to accept more number of parathesis

    say('Hello')('this')('is')('what')('i') ('want');

    The function has to accept n number of paranthesis