We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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 ^