Skip to content

Instantly share code, notes, and snippets.

@seanparsons
Created March 13, 2011 19:26
Show Gist options
  • Save seanparsons/868351 to your computer and use it in GitHub Desktop.
Save seanparsons/868351 to your computer and use it in GitHub Desktop.
scala> (connection.get("TEST").liftFailNel |@| connection.get("TEST2").liftFailNel){(test, test2) => List(test,test2)}
res5: scalaz.Validation[scalaz.NonEmptyList[String],List[Option[String]]] = Success(List(Some(5), Some(6)))
scala> connection.close()
scala> (connection.get("TEST").liftFailNel |@| connection.get("TEST2").liftFailNel){(test, test2) => List(test,test2)}
res7: scalaz.Validation[scalaz.NonEmptyList[String],List[Option[String]]] = Failure(NonEmptyList(Socket closed, Socket closed))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment