Boolean

package module
v0.0.2 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 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