def replay.best
import bend-kit-regex@0.8.0.0/regex.bend as Regeximport Base
1737def replay.best(none: Bool, +hit: U32, +ths: List<&2, Th>, +init: List<&2, Maybe<&2, U32>>, best: Maybe<&2, List<&2, Maybe<&2, U32>>>) -> Maybe<&2, List<&2, Maybe<&2, U32>>>:
1738 match none:
1739 case True{}:
1740 best
1741 case False{}:
1742 Some{caps.of((hit - 1 : U32), ths, init)}