Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
beryilma
· 1y ago · 0 comments
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...
Comments
[–]
xigoi
1y ago
Now modify the SQL to support books having multiple authors. (In the FP example, you would just change map to flatMap.)