Cli.env_first: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 3734-3739 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=3734&end_line=3739 import Base # found, or else the first of names that is set and not empty in vars. def env_first(names: List<&2, String>, found: Maybe<&2, EnvValue>, +vars: List<&2, Var>) -> Maybe<&2, EnvValue>: match names: case Nil{}: found case name <> tail: env_first(tail, env_next(found, name, vars), vars) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=EnvValue https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Var https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=env_next