Boolean

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 1 Imported by: 0

README

Boolean data type has two possible truth values to represent logic.

Documentation

Overview

Boolean data type has two possible truth values to represent logic.

📦 Package: https://package.elm-lang.org/packages/elmw/extra-boolean/latest/ 📘 Wiki: https://github.com/elmw/extra-boolean/wiki.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eq added in v0.0.3

func Eq(a bool, b bool) bool

Check if antecedent ⇔ consequent (a ⇔ b).

a: antecedent

b: consequent

func Imply added in v0.0.3

func Imply(a bool, b bool) bool

Check if antecedent ⇒ consequent (a ⇒ b).

a: antecedent

b: consequent

func Neq added in v0.0.3

func Neq(a bool, b bool) bool

Check if antecedent ⇎ consequent (a ⇎ b).

a: antecedent

b: consequent

func Nimply added in v0.0.3

func Nimply(a bool, b bool) bool

Check if antecedent ⇏ consequent (a ⇏ b).

a: antecedent

b: consequent

func Not added in v0.0.3

func Not(a bool) bool

Check if value is false.

a: a boolean

func Parse added in v0.0.1

func Parse(s string) bool

Convert string to boolean.

s: a string

Example (False1)
fmt.Println(Parse("not true"))
Output:

false
Example (False2)
fmt.Println(Parse("inactive"))
Output:

false
Example (False3)
fmt.Println(Parse("disabled"))
Output:

false
Example (True1)
fmt.Println(Parse("1"))
Output:

true
Example (True2)
fmt.Println(Parse("truthy"))
Output:

true
Example (True3)
fmt.Println(Parse("not off"))
Output:

true

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL