Re:N-queen puzzle in 4 lines of Scala
by haddr on Sunday April 10, 2016 @12:51PM
(#11466984)
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.
It should be called "0,5kb scala contest" than "solving x with scala", to avoid misunderstanding.