BooleanOps

mouse.BooleanOps
final class BooleanOps(b: Boolean) extends AnyVal

Attributes

Source:
boolean.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def !?[A](a: => A)(implicit M: Monoid[A]): A

Attributes

Source:
boolean.scala
def ??[A](a: => A)(implicit M: Monoid[A]): A

Attributes

Source:
boolean.scala

Attributes

Source:
boolean.scala
def either[L, R](l: => L, r: => R): Either[L, R]

Attributes

Source:
boolean.scala
def eitherNel[L, R](ifFalse: => L, ifTrue: => R): EitherNel[L, R]

Attributes

Source:
boolean.scala
def fold[A](t: => A, f: => A): A

Attributes

Source:
boolean.scala
def liftTo[F[_]]: LiftToPartiallyApplied[F]

Attributes

Source:
boolean.scala
def option[A](a: => A): Option[A]

Attributes

Source:
boolean.scala
def unlessA[F[_], A](fa: F[A])(implicit F: Applicative[F]): F[Unit]

That method has the by-value parameter F[A]. For by-name semantic on the F[A] parameter use unlessAL.

That method has the by-value parameter F[A]. For by-name semantic on the F[A] parameter use unlessAL.

Attributes

Source:
boolean.scala
def unlessAL[F[_], A](fa: => F[A])(implicit F: Applicative[F]): F[Unit]

The same as unlessA except for by-name parameter F[A].

The same as unlessA except for by-name parameter F[A].

Attributes

Source:
boolean.scala
def validated[L, R](ifFalse: => L, ifTrue: => R): Validated[L, R]

Attributes

Source:
boolean.scala
def validatedNec[L, R](ifFalse: => L, ifTrue: => R): ValidatedNec[L, R]

Attributes

Source:
boolean.scala
def validatedNel[L, R](ifFalse: => L, ifTrue: => R): ValidatedNel[L, R]

Attributes

Source:
boolean.scala
def valueOrPure[F[_], A](fa: => F[A])(a: => A)(implicit F: Applicative[F]): F[A]

Attributes

Source:
boolean.scala
def valueOrZero[A](a: => A)(implicit M: Monoid[A]): A

Attributes

Source:
boolean.scala
def whenA[F[_], A](fa: F[A])(implicit F: Applicative[F]): F[Unit]

That method has the by-value parameter F[A]. For by-name semantic on the F[A] parameter use whenAL.

That method has the by-value parameter F[A]. For by-name semantic on the F[A] parameter use whenAL.

Attributes

Source:
boolean.scala
def whenAL[F[_], A](fa: => F[A])(implicit F: Applicative[F]): F[Unit]

The same as whenA except for by-name parameter F[A].

The same as whenA except for by-name parameter F[A].

Attributes

Source:
boolean.scala
def zeroOrValue[A](a: => A)(implicit M: Monoid[A]): A

Attributes

Source:
boolean.scala

Deprecated methods

def xor[L, R](l: => L, r: => R): Either[L, R]

Attributes

Deprecated
true
Source:
boolean.scala