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

scalaz.syntax.std.EitherOps.scala Maven / Gradle / Ivy

package scalaz
package syntax
package std

final class EitherOps[A, B](val self: Either[A, B]) extends AnyVal {

  final def disjunction: A \/ B = \/ fromEither self

  final def validation: Validation[A, B] = Validation fromEither self
}

trait ToEitherOps {
  implicit def ToEitherOpsFromEither[A, B](e: Either[A, B]): EitherOps[A, B] = new EitherOps(e)
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy