/ternary

Ternary logic for Go.

Primary LanguageGoMIT LicenseMIT

ternary

build-img pkg-img reportcard-img coverage-img

Ternary logic for Go.

Install

go get github.com/cristalhq/ternary

Example

a, b, c := ternary.False, ternary.Unknown, ternary.True
ternary.Not(a)
ternary.Imp(a, b)
ternary.ImpL(a, c)
ternary.MA(b)

Documentation

See these docs.

License

MIT License.