How to understand traverse, traverseU and traverseM
I am confused about the usage case about traverse, traverseU and traverseM, I searched it in the scalaz website, the simple code example: def sum(x: Int) = x + 1 List(1,2,3).traverseU(sum) it looks like it is similar to (map and aggregate): List(1,2,3).map(sum).reduceLeft(_ + _) I think it is more than that for traverseU, I just wonder what is the difference between those 3 method, it would be better I will have some sample code to show the difference Many thanks in advance sequence is used to gather together applicative effects . More concretely, it lets you "flip" F[G[A]] to G[F[A]] ,