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.
This looks like a well developed Kata translation for Clojure (I especially liked your solution and its use of reduce to suscintly capture application of fsm to events). I am quite new to translations, and tried to approve but I was not able to - something about needing to be able to co-author to approve.
just re-wrote my Clojure code in Python (pretty much verbatum) and it passed all the tests. In both implementations word,,,,word --> word,,,,SPACE word.
.. to me this is a correct and resonable interpretation of th rules.
Yes, I am facing the same confusion. I am certain I can make my program behave in the way the tests are demanding. What I really cannot understand is what interpreation of the rules would lead to the input output behaviour you documented, ie:
word,,,,word --> word, ,, , word
does not seem to follow from the rules. ( I am also working in Clojure )
Thanks so much! Submitted answer and it worked.
This comment is hidden because it contains spoiler information about the solution
Wanted to propose an approach to Kata that emphasizes adaptabilty to changing requirements. Not too controversial to state that what separates good design from bad, is the ability of good design to adapt to change. Would be interesting to have a Kata that changes over time, and solutions have to be altered (or scrapped and started over) to meet changing requirements. Such an approach may require a changes to the underlying CodeWars system. Do let me know if something like this has been done before.
Great question, Everstalk. I agree with what dinglemouse said. You can definitely learn from other approaches, and it is really impressive when someone solves a problem in a 'one liner'. When I see an impressive solution, it is good to dive in and disect each element of the solution -- piece by piece. Try to have an alternative environment for testing out your code, out side of Codewars. That way you can run the alternative solution, break-it down, and test it out.
Looking for the documentation on how to get involved in Kata Translation. I am reasonably proficient in Python, and learning Clojure. I could can see that I would learn stuff and contribute to the community by translating Kata with Python solutions into Clojure. Would appreciate advice on how to get started in this direction.
Thanks!
This comment is hidden because it contains spoiler information about the solution