fpinscala/fpinscala — pull request #313 by salmonsushi (2014-09-25 06:33:55+00:00)
Title: Copied parMap from answers section

Otherwise the solution for parFoldMap in Monoid.scala won't compile

def parFoldMap[A,B](v: IndexedSeq[A], m: Monoid[B])(f: A => B): Par[B] =
Par.parMap(v)(f).flatMap { bs =>
foldMapV(bs, par(m))(b => Par.lazyUnit(b))
}