final class BooleanExtensions extends AnyVal
- Alphabetic
- By Inheritance
- BooleanExtensions
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def errFlatMap[A](fp: TextPosn, errStr: String, ifTrue: => EMon[A]): EMon[A]
- def errMap[A](fp: TextPosn, errStr: String, ifTrue: => A): EMon[A]
- def fold[A](ifTrue: => A, ifFalse: => A): A
Folds the Boolean, a safer and more functional alternative to using an if else statement
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def ifDo(f: => Unit): Unit
A safer alternative to using an "if" without an else
A safer alternative to using an "if" without an else
- Annotations
- @inline()
- def ifElse(ifProcedure: => Unit)(elseProcedure: => Unit): Unit
A safer alternative to using an if-else statement
A safer alternative to using an if-else statement
- Annotations
- @inline()
- def ifMod[A](value: A)(fMod: (A) => A): A
if this Boolean is true modifies the value by applying the function ifMod to it else returns the value unmodified
- def ifNotStr(optionalString: String): String
Returns the the empty string if true, returns String parameter if false
- def ifSeq[A](trueSeq: => Seq[A]): Seq[A]
- def ifSeq1[A](trueElem: => A): Seq[A]
This needs to be changed to by name parameters when by name varargs are allowed.
This needs to be changed to by name parameters when by name varargs are allowed. I think this is coming in 12.3
- def ifStr(optionalString: String): String
Returns the String parameter if true, returns the empty string if false
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val thisBool: Boolean
- def toOption[A](obj: A): Option[A]
- def toString(): String
- Definition Classes
- Any
- def |!&(operand: Boolean): Boolean