Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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')
andsay('Hi')('Tom')('Jones')
to get what you'd expect.Anyone have an answer to this question?! We are trying to figure out how to make this recursive somehow as well...
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