News for hackers. Stuff that matters.
Re:N-queen puzzle in 4 lines of Scala by pfn on Monday April 11, 2016 @04:58PM (#11475045)
permutation, mapping, zipping and filtering are all completely idiomatic scala.

There is next to no cognitive load in this 4-line solution. Brute-force attack on every permutation. I would say that anyone find there to be an excessive cognitive load would be someone that is not familiar with scala nor functional programming.

There are no comments on this comment yet.