-
Notifications
You must be signed in to change notification settings - Fork 0
Xnor
Subhajit Sahu edited this page Mar 24, 2021
·
2 revisions
Checks if even no. of values are true. 📰 📘
boolean.Xnor[n](a, b, ...)
// a: 1st boolean
// b: 2nd boolean
import (
boolean "github.com/golangf/extra-boolean"
)
boolean.Xnor(true, true)
// true
boolean.Xnor(false, true)
// false
boolean.Xnor4(true, true, false, false)
// true
boolean.Xnor4(true, true, true, false)
// false