We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Counts no. of true values. 📰 📘
Can be used to implement one-hot / one-cold detector.
count(a, b, ...) # a: 1st boolean # b: 2nd boolean
from extra_boolean import count count(True, True) # 2 count(True, False) # 1 count(True, True, True, False) # 3 ^ ^ ^ count(False, True, False, False) # 1 ^