def seed
import bend-kit-regex@0.8.0.0/regex.bend as Regeximport Base
1128# Until a match is found, a new thread starts at each position, below every other.
1129def seed(best: Maybe<&2, List<&2, Maybe<&2, U32>>>, xs: List<&2, Th>, init: List<&2, Maybe<&2, U32>>) -> List<&2, Th>:
1130 match best:
1131 case None{}:
1132 List.append(&2, Th, xs, [Th{0, init}])
1133 case Some{b}:
1134 xs