Algebraic
Combines comparisons using either Boolean AND or Boolean
OR and returns a function that takes an optional
arg and uses it as the operand operand or injects a argument from
some other source (e.g., HTML element, query string, session storage).
When called, the returned function returns the a Boolean if one/all are
true, otherwise an Error.
TODO: This needs more testing.
- And
= datatype => (operands = []) => (arg => Either<Error, Boolean>) - Or
= datatype => (operands = []) => (arg => Either<Error, Boolean>)