Skip to content

Main content

List Run Length One Boundary Update Tool

Calculate list run length one boundary update from explicit caller-supplied inputs.

Loading tool…

Description

Compare leftValue and rightValue exactly.

A run is a consecutive group of equal values. Its internal adjacencies and boundary relationships differ from counts of distinct values across a whole list.

Compare leftValue and rightValue exactly.

When to use this tool

Use List Run Length One Boundary Update when you need one run boundary or adjacency calculation.

How to use the tool and how it works

  1. Enter leftValue, leftLength, rightValue, rightLength. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read merged, lengths. Inspect merged before interpreting the associated values.

Compare leftValue and rightValue exactly. Equal values merge their positive lengths into one entry; unequal values retain the two lengths separately.1

Input fieldMeaning and unitsAccepted input
leftValueLeft ValueRequired. Text; maximum UTF-16 length 8192.
leftLengthLeft LengthRequired. Safe integer; minimum 1.
rightValueRight ValueRequired. Text; maximum UTF-16 length 8192.
rightLengthRight LengthRequired. Safe integer; minimum 1.
Output fieldInterpretationReturned shape
mergedMergedRequired. Boolean.
lengthsLengthsRequired. Array of safe integer; maximum items 256.
json
{
  "input": {
    "leftValue": "a",
    "leftLength": 2,
    "rightValue": "a",
    "rightLength": 3
  },
  "output": {
    "merged": true,
    "lengths": [
      5
    ]
  }
}

Limitations and assumptions

  • This examines one boundary, not a complete run-length encoding or value normalization.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use a complete run-length scan when maximal runs and their values need to be constructed or verified.

References

  1. Calculation and input contract: list/list-run-length-one-boundary-update — tool.io

Similar or alternative tools