Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: