Set
Compares operand
to test
(a Set
) and
returns a function that takes an optional arg
and uses it as the
operand or injects a argument from some other source (e.g., HTML element, query
string, session storage).
When called, the returned function returns the operand if it is disjoint, a
subset, a member, etc. of the test set, otherwise returns an
Error
.
- IsDisjointSet
= (datatype = "Set") => operand => test => (arg => Either<Error, Set)
- IsMember
= (datatype = "Member") => operand => test => (arg => Either<Error, Member)
- IsOverlappingSet
= (datatype = "Set") => operand => test => (arg => Either<Error, Set)
- IsSubset
= (datatype = "Set") => operand => test => (arg => Either<Error, Set)
- IsSuperset
= (datatype = "Set") => operand => test => (arg => Either<Error, Set)