I agree that one-liners are hard to read and completely beginner - unfriendly, but they are just about beauty and fun. In a real life task splitting this in multiple lines is a good idea, but solving katas like this is definitely great.
Nice - but I think that if you passed a bool or list (etc.) as the variable num, it would actually not work - or am I wrong? Where do you check if the num variable actually is an int before processing it?
I am newbie. please tell me how it works? Thank you
best
This comment is hidden because it contains spoiler information about the solution
clean
You really went all out on the explaining. Thanks for the effort of explaining it that thorough.
i love you too
i love 'el' in a map
i wish i could be as skillful as you someday!
LMAO
can someone please explain this code i can't find myself reading right ?
i always felling so dumb when i'm checking out other's solutions
I agree that one-liners are hard to read and completely beginner - unfriendly, but they are just about beauty and fun. In a real life task splitting this in multiple lines is a good idea, but solving katas like this is definitely great.
It is the duty of the Kata author(s) to enforce any rules in the test cases
you should obey the rules!!
Nice - but I think that if you passed a bool or list (etc.) as the variable num, it would actually not work - or am I wrong? Where do you check if the num variable actually is an int before processing it?
Loading more items...