Skip to content
Subhajit Sahu edited this page Mar 24, 2021 · 2 revisions

Checks if antecedent ⇒ consequent (a ⇒ b). 📰 📘

Similar: Imply, Nimply.
Similar: Imply, Eq.


boolean.Imply(a, b)
// a: antecedent
// b: consequent
import (
	boolean "github.com/golangf/extra-boolean"
)

boolean.Imply(false, false)
// true

boolean.Imply(false, true)
// true

boolean.Imply(true, true)
// true

boolean.Imply(true, false)
// false


References

Clone this wiki locally