Welcome! Got a question? Do you have -Ypartial-unification turned on? Other FAQs: http://typelevel.org/cats/faq.html
Semigroupal[Set]
.
Invariant[Set]
to get the Isomorphism[Set]
, or bring my own.
dual
method for Monoid
? Like for example:implicit Monoid[A] => implicit Monoid[A @@ Dual]
foldMap `ala` Min [1,2,3]
implicit class ParallelTraverseOps[F[_]: Traverse, A](fa: F[A]) {
def jankyParTraverse[G[_]: Concurrent, B](f: A => G[B]): G[F[B]] =
fa.traverse(a => f(a).start).flatMap(fs => fs.traverse(_.join))
}
Parallel