Pkg.licensed: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg Lines 1187-1196 of ezx@1.11.0.0/src/pkg/pkg.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&start_line=1187&end_line=1196 import Base import ezx@1.11.0.0/src/pkg/path.bend as P # the first found file whose place in the package lies under a directory # named license, or "" when none does. It reads names alone, so nothing is # weighed for it. def licensed(+pre: String, fs: List<&2, Hit>) -> String: match fs: case []: "" case Hit{raw, _text} <> t: +at = P.join(pre, raw) licensed.step(license.under(at), at, _u => licensed(pre, t)) 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=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/path.bend&name=join https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=Hit https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=license.under https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=licensed.step