Trait

scalaz.syntax.std

BooleanOps

Related Doc: package std

Permalink

trait BooleanOps extends Ops[Boolean]

Source
BooleanOps.scala
Linear Supertypes
Ops[Boolean], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BooleanOps
  2. Ops
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait Conditional[X] extends AnyRef

    Permalink
  2. trait ConditionalEither[A] extends AnyRef

    Permalink
  3. trait GuardPrevent[M[_]] extends AnyRef

    Permalink

Abstract Value Members

  1. abstract def self: Boolean

    Permalink
    Definition Classes
    Ops

Concrete Value Members

  1. final def !&&(q: ⇒ Boolean): Boolean

    Permalink

    Negation of Conjunction.

    Negation of Conjunction. (NOR)

    p q  p !&& q
    0 0  1
    0 1  1
    1 0  1
    1 1  0
  2. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def !?[A](a: ⇒ A)(implicit z: Monoid[A]): A

    Permalink

    Returns the given argument if this is false, otherwise, the zero element for the type of the given argument.

  4. final def !||(q: ⇒ Boolean): Boolean

    Permalink

    Negation of Disjunction.

    Negation of Disjunction. (NAND)

    p q  p !|| q
    0 0  1
    0 1  0
    1 0  0
    1 1  0
  5. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def -->(q: ⇒ Boolean): Boolean

    Permalink

    Conditional.

    Conditional.

    p q  p --> q
    0 0  1
    0 1  1
    1 0  0
    1 1  1
  7. final def -/>(q: ⇒ Boolean): Boolean

    Permalink

    Negational of Conditional.

    Negational of Conditional.

    p q  p -/> q
    0 0  0
    0 1  0
    1 0  1
    1 1  0
  8. final def /\(q: ⇒ Boolean): Boolean

    Permalink

    Conjunction.

    Conjunction. (AND)

    p q  p /\ q
    0 0  0
    0 1  0
    1 0  0
    1 1  1
  9. final def <--(q: ⇒ Boolean): Boolean

    Permalink

    Inverse Conditional.

    Inverse Conditional.

    p q  p <-- q
    0 0  1
    0 1  0
    1 0  1
    1 1  1
  10. final def <\-(q: ⇒ Boolean): Boolean

    Permalink

    Negation of Inverse Conditional.

    Negation of Inverse Conditional.

    p q  p ⇍ q
    0 0  0
    0 1  1
    1 0  0
    1 1  0
  11. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def ?[X](t: ⇒ X): Conditional[X]

    Permalink

    Conditional operator that returns the first argument if this is true, the second argument otherwise.

  13. final def ??[A](a: ⇒ A)(implicit z: Monoid[A]): A

    Permalink

    Returns the given argument if this is true, otherwise, the zero element for the type of the given argument.

  14. final def \/(q: ⇒ Boolean): Boolean

    Permalink

    Disjunction.

    Disjunction. (OR)

    p q  p \/ q
    0 0  0
    0 1  1
    1 0  1
    1 1  1
  15. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. final def conjunction: @@[Boolean, Conjunction]

    Permalink
  18. final def disjunction: @@[Boolean, Tags.Disjunction]

    Permalink
  19. final def either[A, B](a: ⇒ A): ConditionalEither[A]

    Permalink

    Returns the first argument in \/- if this is true, otherwise the second argument in -\/.

  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def fold[A](t: ⇒ A, f: ⇒ A): A

    Permalink

    returns

    t if true, f otherwise

  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def guard[M[_]]: GuardPrevent[M]

    Permalink
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. final def lazyOption[A](a: ⇒ A): LazyOption[A]

    Permalink

    Returns the given argument in LazySome if this is true, LazyNone otherwise.

  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def option[A](a: ⇒ A): Option[A]

    Permalink

    Returns the given argument in Some if this is true, None otherwise.

  33. final def prevent[M[_]]: GuardPrevent[M]

    Permalink
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. final def unless(f: ⇒ Unit): Unit

    Permalink

    Executes the given side-effect if this boolean value is false.

  37. final def unlessM[M[_], A](f: ⇒ M[A])(implicit arg0: Applicative[M]): M[Unit]

    Permalink

    Returns the given argument if cond is false, otherwise, unit lifted into M.

  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def when(f: ⇒ Unit): Unit

    Permalink

    Executes the given side-effect if this boolean value is true.

  42. final def whenM[M[_], A](f: ⇒ M[A])(implicit arg0: Applicative[M]): M[Unit]

    Permalink

    Returns the given argument if cond is true, otherwise, unit lifted into M.

  43. final def |/\|: @@[Boolean, Conjunction]

    Permalink
  44. final def |\/|: @@[Boolean, Tags.Disjunction]

    Permalink
  45. final def |∧|: @@[Boolean, Conjunction]

    Permalink
  46. final def |∨|: @@[Boolean, Tags.Disjunction]

    Permalink
  47. final def (q: ⇒ Boolean): Boolean

    Permalink

    Negation of Inverse Conditional.

    Negation of Inverse Conditional.

    p q  p <\- q
    0 0  0
    0 1  1
    1 0  0
    1 1  0
  48. final def (q: ⇒ Boolean): Boolean

    Permalink

    Negational of Conditional.

    Negational of Conditional.

    p q  p ⇏ q
    0 0  0
    0 1  0
    1 0  1
    1 1  0
  49. final def (q: ⇒ Boolean): Boolean

    Permalink

    Conjunction.

    Conjunction. (AND)

    p q  p ∧ q
    0 0  0
    0 1  0
    1 0  0
    1 1  1
  50. final def (q: ⇒ Boolean): Boolean

    Permalink

    Disjunction.

    Disjunction. (OR)

    p q  p ∨ q
    0 0  0
    0 1  1
    1 0  1
    1 1  1

Inherited from Ops[Boolean]

Inherited from AnyRef

Inherited from Any

Ungrouped