Hacker News new | ask | show | jobs
by beryilma 457 days ago
This is 5 times more readable than FP example above for the same computation. The FP example uses variable book(s) five times, where using it once was sufficient for SQL. Perhaps FP languages could have learned something from SQL...
1 comments

Now modify the SQL to support books having multiple authors. (In the FP example, you would just change map to flatMap.)