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

  1. Establish the text or game convention described above.
  2. Enter actualCandidateSubset, actualSuperset and run the tool.
  3. Read result.isSubset, result.missingDistinctValues using the output meanings below.
  4. If input is rejected, correct the stated type, range, ordering or alignment issue and rerun; review successful results under the declared convention.
Input fieldMeaningValue typeRequirement
actualCandidateSubsetCandidate subset, on the basis specified in the algorithm.array of stringrequired; dense; align related rows as specified; at most 128 strings; 128 UTF-16 units each; further conditions in the algorithm
actualSupersetSuperset, on the basis specified in the algorithm.array of stringrequired; 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 fieldMeaningValue type
resultObject containing the declared output fields.object
result.isSubsetTrue when no distinct candidate value is missing.boolean
result.missingDistinctValuesMissing distinct exact strings, in first-occurrence candidate order.array
json
{
  "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

  1. Subset Checker — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies