Decompose a generated branch segment back into its parts, or undefined
when segment is not one.
Splitting at the LAST marker is unambiguous precisely because the builder
refuses the marker in the parent id (see the module doc) — no right-most
numeric-scanning heuristic is needed, and the round trip
parseBranchSegment(buildBranchSegment(id, i)) is exact.
Decompose a generated branch segment back into its parts, or
undefinedwhensegmentis not one.Splitting at the LAST marker is unambiguous precisely because the builder refuses the marker in the parent id (see the module doc) — no right-most numeric-scanning heuristic is needed, and the round trip
parseBranchSegment(buildBranchSegment(id, i))is exact.