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.
Please see this link to properly format your code in the discourse. Anyway, you're logging too much to the console, that's the reason for the error. If you get rid of your
console.log
statements, it should work.Hello. Sorry for taking so long to respond. I've only read one book about the functional approach - the Structure and interpretation of computer programs. You can find it using the keywords MIT 6.001.
@maks88sgt would you recommend any particular book regarding functional programming? Thanks.
This comment is hidden because it contains spoiler information about the solution
You don't specify what went wrong. Which test case did you fail on, and what output did you see from that failure?
(If it's a stack trace, the first 1-2 lines are enough).
thank you for your solution :)
Thanks for your feedback. I recommend reading something about functional programming. This greatly affects your coding style and allows you to think a little differently than usual.
No, I meant you can, your code is not complete, you only used
+
more than one time, what about*
? Check the examples in the description.No, read this again:
And next time mark your post as having spoiler content.