LeafPattern.singleMatch
Tuple!(int, LeafPattern) singleMatch(Pattern[] left)Finds a single match for this pattern in the left array.
Parameters
left | The array of patterns to search. |
Returns
A tuple of (index, matched_pattern) or (negative, null) if not found.