Skip to content

Instantly share code, notes, and snippets.

@ceedubs
Last active December 25, 2015 06:39
Show Gist options
  • Save ceedubs/6934206 to your computer and use it in GitHub Desktop.
Save ceedubs/6934206 to your computer and use it in GitHub Desktop.
scala> val vs = 1.success[String] :: 2.success[String] :: Nil
vs: List[scalaz.Validation[String,Int]] = List(Success(1), Success(2))
scala> vs.traverseU(_.toValidationNel)
res9: List[scalaz.Validation[scalaz.NonEmptyList[String],Int]] = List(Success(1), Success(2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment