Is it possible to express in a generic way, using cats or scalaz this?
val common: F[Common] = ...
val a: F[A] = common.flatMap(commonToA)
val b: F[B] = common.flatMap(commonToB)
val result: F[(A,B)] = a someFunctionToProduct b
And ensure that the common
effect is effectively executed only once?