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 Parse ¶ added in v0.0.1
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.
Click to show internal directories.
Click to hide internal directories.