News for hackers. Stuff that matters.
Re:N-queen puzzle in 4 lines of Scala by atemerev on Sunday April 10, 2016 @09:03AM (#11465954)
Those are bread and butter of functional programming, like for loop, break and continue in imperative programming. There are really no advanced features here; not even a single monad!

For someone completely unfamiliar with FP, the cognitive load might be high. However, even basic familiarity with FP constructs is enough to understand and appreciate the code.

Re:N-queen puzzle in 4 lines of Scala by hk__2 on Sunday April 10, 2016 @09:16AM (#11465980)
The fact that it needs two comments to clarify what it’s doing is a code smell in itself.
Re:N-queen puzzle in 4 lines of Scala by Retra on Sunday April 10, 2016 @12:36PM (#11466895)
It doesn't need those comments; you do.
Re:N-queen puzzle in 4 lines of Scala by atemerev on Sunday April 10, 2016 @11:02AM (#11466403)
So, comments are code smell?
Re:N-queen puzzle in 4 lines of Scala by hk__2 on Monday April 11, 2016 @11:45AM (#11472302)
That’s not what I wrote.