5 ms·
The difference here is that when you read the title you think: "wow, scala features allows solving interesting problems in few steps, let's see". And the you re
by haddr 11y ago
The difference here is that when you read the title you think: "wow, scala features allows solving interesting problems in few steps, let's see". And the you realize that it's a cheat. This code is literaly squeezed into those 4 lines, full of less common idioms, and quite obscure.
It should be called "0,5kb scala contest" than "solving x with scala", to avoid misunderstanding.