5 ms·
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 sufficien
by beryilma 2y 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...
- xigoi 2y agoNow modify the SQL to support books having multiple authors. (In the FP example, you would just change map to flatMap.)