Skip to content

Instantly share code, notes, and snippets.

@timperrett
Created April 2, 2015 02:26
Show Gist options
  • Select an option

  • Save timperrett/c9e75f27396f5b3c7978 to your computer and use it in GitHub Desktop.

Select an option

Save timperrett/c9e75f27396f5b3c7978 to your computer and use it in GitHub Desktop.
import scalaz._, Scalaz._
import scalaz.concurrent.Task
val a: String \/ Int = 1.right
def f(in: Int): Task[Doulbe] = Task.now(in.toDouble)
// scalaz.Unapply[scalaz.Traverse,scalaz.\/[String,Int]]{type M[X] = scalaz.\/[String,X]; type A = Int}#M[Double]
a.traverseU(f).run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment