Subset Checker
Case-sensitiveexactstring-set inclusion,duplicatesignored,emptycandidatevalid. Explicitboundedofflineconvention,not authoritative external identity,eligibility,clinical or safe-use determination.
Description
Set inclusion asks whether every distinct candidate value appears in a supplied superset.
Set inclusion asks whether every distinct candidate value appears in a supplied superset.1
Repeated values do not change membership, and the empty set is a subset.
When to use Subset Checker
Use this tool to apply the stated subset checker operation with an explicit input and unit basis.
How to use Subset Checker and how it works
- Establish the text or game convention described above.
- Enter actualCandidateSubset, actualSuperset and run the tool.
- Read result.isSubset, result.missingDistinctValues using the output meanings below.
- If input is rejected, correct the stated type, range, ordering or alignment issue and rerun; review successful results under the declared convention.
| Input field | Meaning | Value type | Requirement |
|---|---|---|---|
| actualCandidateSubset | Candidate subset, on the basis specified in the algorithm. | array of string | required; dense; align related rows as specified; at most 128 strings; 128 UTF-16 units each; further conditions in the algorithm |
| actualSuperset | Superset, on the basis specified in the algorithm. | array of string | required; dense; align related rows as specified; at most 128 strings; 128 UTF-16 units each; further conditions in the algorithm |
Deduplicate candidate strings in first-occurrence order and retain those absent from the superset using exact case-sensitive matching. Return their list and whether it is empty.
is subset = missing distinct values count = 0 Apply the declared units, ordering and branch conditions.
| Output field | Meaning | Value type |
|---|---|---|
| result | Object containing the declared output fields. | object |
| result.isSubset | True when no distinct candidate value is missing. | boolean |
| result.missingDistinctValues | Missing distinct exact strings, in first-occurrence candidate order. | array |
{
"input": {
"actualCandidateSubset": [
"a"
],
"actualSuperset": [
"a",
"b"
]
},
"output": {
"result": {
"isSubset": true,
"missingDistinctValues": []
}
}
} Limitations and assumptions
The output applies the declared operation to the values you supply. Establish the measurement basis, units, coefficients and any caller-selected rules before interpreting it. The tool does not independently collect or verify observations or decide whether a model or reference applies.
Supply explicit required fields with the documented types and dense aligned arrays. Unknown fields, wrong types and nonfinite numbers are rejected. Branch-specific constraints are explained above. A successful false boolean, negative signed difference, empty slice or unresolved tie is distinct from an input error. Very large inputs or outputs may be rejected by shared resource limits.
Alternative or Complementary methods
Use List Difference to complement this result. List distinct candidate values absent from another list.
Use List Intersection to complement this result. List distinct exact strings shared by two lists.
References
-
Subset Checker — tool.io
Similar or alternative tools
- List Difference
List distinct candidate values absent from another list.
- List Intersection
List distinct exact strings shared by two lists.