All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gapt.utils.EitherHelpers.scala Maven / Gradle / Ivy

The newest version!
package gapt.utils
import scala.util.Right

object EitherHelpers {

  implicit class RichEither[A, B](private val disj: Either[A, B]) extends AnyVal {
    def get: B = (disj: @unchecked) match { case Right(b) => b }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy