Cli.scope_group_rules: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 1689-1694 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=1689&end_line=1694 import Base def scope_group_rules(items: List<&2, Item>) -> List<&2, String>: match items: case Nil{}: Nil{} case Exclusive{group} <> tail: group <> scope_group_rules(tail) case NeedOne{group} <> tail: group <> scope_group_rules(tail) case head <> tail: scope_group_rules(tail) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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=Item