Cli.find_spec_info: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 3019-3026 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=3019&end_line=3026 import Base # find_arg_info over parsed items; after a hit it only walks the rest. def find_spec_info(items: List<&2, SpecItem>, +id: String, found: Maybe<&2, ArgInfo>) -> Maybe<&2, ArgInfo>: match items found: case Nil{} hit: hit case item <> tail Some{hit}: Some{hit} case item <> tail None{}: find_spec_info(tail, id, spec_info_found(item, id)) 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=ArgInfo https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=SpecItem https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=spec_info_found