connective
connective copied to clipboard
Logical Operators
A common practice is to apply logical operators on boolean pins/states. As a result, it would be exceedingly helpful to have them available.
and = (...pins) => pack(...pins).to(map(l => l.every(p => p)));
or = (...pins) => pack(...pins).to(map(l => l.some(p => p)));
not = pin => pin.to(map(p => !p));