def find_sub
import shake@0.7.0.0/src/cli.bend as Cliimport Base
350# the Sub with this name, if any
351def find_sub(subs: List<&2, Sub>, +name: String) -> Maybe<&2, Sub>:
352 match subs:
353 case Nil{}:
354 None{}
355 case Con{+h, t}:
356 find_sub.at(h, find_sub(t, name), name)