You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The answers for Exercise 7.6 are missing. Only parFilter is provided, but not map3 to map5, also not the reduce/fold function for summation/maximum/character count.
The answers for Exercise 7.6 are missing. Only
parFilter
is provided, but notmap3
tomap5
, also not thereduce
/fold
function for summation/maximum/character count.https://github.com/fpinscala/fpinscala/blob/master/answers/src/main/scala/fpinscala/parallelism/Par.scala
I'd like to be able to review my approach against a model approach. I'll provide my answers below if it's any help.
I've implemented
map3
like this:With
map5
I became a bit fancier and implemented aflapMap
first. Then I implemented it like this:For the other exercises I implemented a
reduce
andparReduce
function first, like this:And then solved the exercises like so:
The text was updated successfully, but these errors were encountered: