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.
I wish there was more such a links with explanation. Thanks a lot!
Yes, it's the conditional statement in C/C++:
a ? b : c
has the valueb
ifa
is true, andc
ifa
is false. But it is possible thatc
is another statement of the same kind, so e.g.a ? b : x ? y : z
has the valueb
ifa
is true,y
ifa
is false butx
is true, andz
ifa
andx
are both false. Similiarly,z
could be yet another conditional statement, and so on. No parentheses are required, and the source code can be formatted as in this solution, so it looks like a list of conditions to be checked and corresponding values to take. Java and Javascript both allow this syntax too.Automatic type choice. These are all valid:
what does "auto" mean?
Nice! Could you please share the description of "return". Am I right that expression before the sign "?" means a condition to check, semicolomn is a start of a second condition and remains third one wich returns just name of firstAttacker in the case of failing other?