def index.go
import bend-kit-time@0.3.0.0/time.bend as Timeimport Base
512def index.go(xs: List<&2, String>, +w: String, +i: U32) -> U32:
513 match xs:
514 case Nil{}:
515 i
516 case Con{x, rest}:
517 Bool.pick(U32, String.eq(x, w), i, index.go(rest, w, (i + 1 : U32)))