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.
Looking at this kata but haven't tried it yet. That said, the parser would know how many parameters the function needs when it sees its name. Thereby knowing how many expressions to parse to be able give it the parameters it needs. Keeping in mind that an expression would continue to parse as long as it possibly can and still being a valid expression. Thus the parser would parse two subsequent expressions (resolving "2 + 5" and "3" respectively) and give them to the function, evaluate it, and continue on.
It will not stop at just the "2", because "2 + 5" is a valid expression; it will however stop there, because "2 + 5 3" is not a valid expression (as per the grammar).
I hope that makes sense.
issue 6 years old, author incactive, 322 warriors solved it, translated to other 2 languages, I am presuming, based on these fact, that description is ok. I am closing this issue, as it is stopping kata with 88% rate from further progress in beta process. If anyone disagree, please do suggestion or fork with better description.
This comment is hidden because it contains spoiler information about the solution
I've fixed the Rust translation, sample tests should now correctly use
Options
in the assertions. A reset of the trainer might be necessary to see the changes if you've already started training on them, however I wouldn't bother since the actual test suite is not affected by this issue.This is very odd, since the approved translation has correct sample tests. Not sure how these (outdated) sample tests show up when entering the trainer. I'll look into it.
Approved, thanks.
I'm mostly ok with it (I wouldn't say what you have to return twice, but if you think it's really needed...), but I'm not sure if "ohell" is left rotation of "hello" (I know the author said that), I'd say that's a right rotation, here is my interpretation (and I saw it like that in some places too):
Now let's see what @antrianis thinks.
Suggest a better description then, kata's author is active so he can improve it.
in my opinion, a kata should be descriptive enough to not allow for "different interpretation" from most of its takerstakers
Why would you need to differentiate what kind of rotation it was? IMHO it's not a kata issue, it's your wrong interpretation.