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
- @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
a
lifted into the contextM
ifcond
isfalse
, otherwise, the empty value forM
.Returns the value
a
lifted into the contextM
ifcond
isfalse
, 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
t
ifcond
istrue
,f
otherwise
- Definition Classes
- BooleanFunctions
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
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
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
option[A](cond: Boolean, a: ⇒ A): Option[A]
Returns the given argument in
Some
ifcond
istrue
,None
otherwise.Returns the given argument in
Some
ifcond
istrue
,None
otherwise.- Definition Classes
- BooleanFunctions
-
final
def
pointOrEmpty[M[_], A](cond: Boolean)(a: ⇒ A)(implicit M: Applicative[M], M0: PlusEmpty[M]): M[A]
Returns the value
a
lifted into the contextM
ifcond
istrue
, otherwise, the empty value forM
.Returns the value
a
lifted into the contextM
ifcond
istrue
, 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
1
ifp
is true, or0
otherwise.Returns
1
ifp
is true, or0
otherwise.- Definition Classes
- BooleanFunctions
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
unless(cond: Boolean)(f: ⇒ Unit): Unit
Executes the given side-effect if
cond
isfalse
Executes the given side-effect if
cond
isfalse
- Definition Classes
- BooleanFunctions
-
final
def
unlessM[M[_], A](cond: Boolean)(f: ⇒ M[A])(implicit M: Applicative[M]): M[Unit]
Returns the given argument if
cond
isfalse
, otherwise, unit lifted into M.Returns the given argument if
cond
isfalse
, 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
unlessM
that infers the type constructorM
.A version of
unlessM
that 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
cond
istrue
, otherwise, the zero element for the type of the given argument.Returns the given argument if
cond
istrue
, 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
- @throws( ... )
-
final
def
when(cond: Boolean)(f: ⇒ Unit): Unit
Executes the given side-effect if
cond
istrue
Executes the given side-effect if
cond
istrue
- Definition Classes
- BooleanFunctions
-
final
def
whenM[M[_], A](cond: Boolean)(f: ⇒ M[A])(implicit M: Applicative[M]): M[Unit]
Returns the given argument if
cond
istrue
, otherwise, unit lifted into M.Returns the given argument if
cond
istrue
, 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
whenM
that infers the type constructorM
.A version of
whenM
that 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
cond
isfalse
, otherwise, the zero element for the type of the given argument.Returns the given argument if
cond
isfalse
, otherwise, the zero element for the type of the given argument.- Definition Classes
- BooleanFunctions