def seed

bend-kit-regex@0.8.0.0 · regex.bend:1128

import bend-kit-regex@0.8.0.0/regex.bend as Regex
import 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

Uses (5)

Used by (1)