Skip to content

Instantly share code, notes, and snippets.

@teamon
Created March 26, 2013 18:56
Show Gist options
  • Save teamon/5248121 to your computer and use it in GitHub Desktop.
Save teamon/5248121 to your computer and use it in GitHub Desktop.
// I want to run few operations that may fail, and in case of failure run
// corresponding rollback function
val f: A => Either[Success, Error]
val fBack: A => Unit
val g: B => Either[Success, Error]
val gBack: B => Unit
val h: A => B => Either[Success, Error] = ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment