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.
>>
operator has lower precedence than addition, but it's easier on an eye when the left side is inside the braces.I think you are confusing the concepts of 'recursion' and 'functional programming'. Not creating side effects is the point of FP, and FP happens to use recursion. But recursion itself is simply the concept of a function calling itself, which does not at all limit it to FP.
No it's not. You are working with recursion on a global variable. This goes against the basic idea of functional and recursive programming. The idea is to work with values and not with global objects and create side effects.
Objects are always passed by reference. This code wouldn't even work otherwise, since you'd run out of stack space immediately for huge inputs.
This is a baseless statement.
A couple of things.