Argument.singleMatch

Tuple!(int, LeafPattern) singleMatch(Pattern[] left)

Finds a single match for this argument in the left array.

Matches against any Argument pattern in the list.

Parameters

leftThe array of patterns to search.

Returns

A tuple of (index, matched_argument) or (-1, null) if not found.