Cli.owner: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 5914-5923 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=5914&end_line=5923 import Base # T1: the deepest ancestor whose args take the long, and its child on path. def owner(path: List<&2, String>, +items: List<&2, Item>, +prefix: String, +token: String, +long: String, found: Maybe<&2, String>) -> Maybe<&2, String>: match path: case Nil{}: found case +step <> tail: owner(tail, sub_items(find_sub(items, step)), String.concat([prefix, " ", step]), token, long, owned_by(find_option(items, long), token, prefix, step, found)) Uses (9): 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=Base/base.bend&name=String.concat https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Item https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=find_option https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=find_sub https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=owned_by https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=sub_items