object boolean extends BooleanFunctions
- Source
- AnyVal.scala
- Alphabetic
- By Inheritance
- boolean
- BooleanFunctions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
conditional(p: Boolean, q: ⇒ Boolean): Boolean
Conditional.
Conditional.
p q p --> q 0 0 1 0 1 1 1 0 0 1 1 1
- Definition Classes
- BooleanFunctions
-
final
def
conjunction(p: Boolean, q: ⇒ Boolean): Boolean
Conjunction.
Conjunction. (AND)
p q p ∧ q 0 0 0 0 1 0 1 0 0 1 1 1
- Definition Classes
- BooleanFunctions
-
final
def
disjunction(p: Boolean, q: ⇒ Boolean): Boolean
Disjunction.
Disjunction. (OR)
p q p ∨ q 0 0 0 0 1 1 1 0 1 1 1 1
- Definition Classes
- BooleanFunctions
-
final
def
emptyOrPure[M[_], A](cond: Boolean)(a: ⇒ A)(implicit M: Applicative[M], M0: PlusEmpty[M]): M[A]
Returns the value
alifted into the contextMifcondisfalse, otherwise, the empty value forM.Returns the value
alifted into the contextMifcondisfalse, otherwise, the empty value forM.- Definition Classes
- BooleanFunctions
-
final
def
emptyOrPureNT[M[_]](cond: Boolean)(implicit M: Applicative[M], M0: PlusEmpty[M]): ~>[Id.Id, M]
- Definition Classes
- BooleanFunctions
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
fold[A](cond: Boolean, t: ⇒ A, f: ⇒ A): A
- returns
tifcondistrue,fotherwise
- Definition Classes
- BooleanFunctions
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
inverseConditional(p: Boolean, q: ⇒ Boolean): Boolean
Inverse Conditional.
Inverse Conditional.
p q p <-- q 0 0 1 0 1 0 1 0 1 1 1 1
- Definition Classes
- BooleanFunctions
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
nand(p: Boolean, q: ⇒ Boolean): Boolean
Negation of Conjunction.
Negation of Conjunction. (NAND)
p q p !&& q 0 0 1 0 1 1 1 0 1 1 1 0
- Definition Classes
- BooleanFunctions
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
negConditional(p: Boolean, q: ⇒ Boolean): Boolean
Negational of Conditional.
Negational of Conditional.
p q p ⇏ q 0 0 0 0 1 0 1 0 1 1 1 0
- Definition Classes
- BooleanFunctions
-
final
def
negInverseConditional(p: Boolean, q: ⇒ Boolean): Boolean
Negation of Inverse Conditional.
Negation of Inverse Conditional.
p q p <\- q 0 0 0 0 1 1 1 0 0 1 1 0
- Definition Classes
- BooleanFunctions
-
final
def
nor(p: Boolean, q: ⇒ Boolean): Boolean
Negation of Disjunction.
Negation of Disjunction. (NOR)
p q p !|| q 0 0 1 0 1 0 1 0 0 1 1 0
- Definition Classes
- BooleanFunctions
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
option[A](cond: Boolean, a: ⇒ A): Option[A]
Returns the given argument in
Someifcondistrue,Noneotherwise.Returns the given argument in
Someifcondistrue,Noneotherwise.- Definition Classes
- BooleanFunctions
-
final
def
pointOrEmpty[M[_], A](cond: Boolean)(a: ⇒ A)(implicit M: Applicative[M], M0: PlusEmpty[M]): M[A]
Returns the value
alifted into the contextMifcondistrue, otherwise, the empty value forM.Returns the value
alifted into the contextMifcondistrue, otherwise, the empty value forM.- Definition Classes
- BooleanFunctions
-
final
def
pointOrEmptyNT[M[_]](cond: Boolean)(implicit M: Applicative[M], M0: PlusEmpty[M]): ~>[Id.Id, M]
- Definition Classes
- BooleanFunctions
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
test(p: Boolean): Int
Returns
1ifpis true, or0otherwise.Returns
1ifpis true, or0otherwise.- Definition Classes
- BooleanFunctions
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
unless(cond: Boolean)(f: ⇒ Unit): Unit
Executes the given side-effect if
condisfalseExecutes the given side-effect if
condisfalse- Definition Classes
- BooleanFunctions
-
final
def
unlessM[M[_], A](cond: Boolean)(f: ⇒ M[A])(implicit M: Applicative[M]): M[Unit]
Returns the given argument if
condisfalse, otherwise, unit lifted into M.Returns the given argument if
condisfalse, otherwise, unit lifted into M.- Definition Classes
- BooleanFunctions
-
final
def
unlessMU[MA](cond: Boolean)(f: ⇒ MA)(implicit M: Unapply[Applicative, MA]): M[Unit]
A version of
unlessMthat infers the type constructorM.A version of
unlessMthat infers the type constructorM.- Definition Classes
- BooleanFunctions
-
final
def
valueOrZero[A](cond: Boolean)(value: ⇒ A)(implicit z: Monoid[A]): A
Returns the given argument if
condistrue, otherwise, the zero element for the type of the given argument.Returns the given argument if
condistrue, otherwise, the zero element for the type of the given argument.- Definition Classes
- BooleanFunctions
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
when(cond: Boolean)(f: ⇒ Unit): Unit
Executes the given side-effect if
condistrueExecutes the given side-effect if
condistrue- Definition Classes
- BooleanFunctions
-
final
def
whenM[M[_], A](cond: Boolean)(f: ⇒ M[A])(implicit M: Applicative[M]): M[Unit]
Returns the given argument if
condistrue, otherwise, unit lifted into M.Returns the given argument if
condistrue, otherwise, unit lifted into M.- Definition Classes
- BooleanFunctions
-
final
def
whenMU[MA](cond: Boolean)(f: ⇒ MA)(implicit M: Unapply[Applicative, MA]): M[Unit]
A version of
whenMthat infers the type constructorM.A version of
whenMthat infers the type constructorM.- Definition Classes
- BooleanFunctions
-
final
def
zeroOrValue[A](cond: Boolean)(value: ⇒ A)(implicit z: Monoid[A]): A
Returns the given argument if
condisfalse, otherwise, the zero element for the type of the given argument.Returns the given argument if
condisfalse, otherwise, the zero element for the type of the given argument.- Definition Classes
- BooleanFunctions