Config.chain: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/config.bend as Config Lines 239-247 of bolt@1.27.0.0/src/config.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/config.bend&start_line=239&end_line=247 import Base # the bolt.bend of a resolved directory (innermost first, as `home` gives it) # and of each parent up to the root, nearest first: `[p3, w]` is # `/w/p3/bolt.bend`, `/w/bolt.bend`, `/bolt.bend` def chain(ds: List<&2, String>) -> List<&2, String>: match ds: case Nil{}: ["/bolt.bend"] case Con{d, +rest}: (root(d <> rest, "") ++ "bolt.bend") <> chain(rest) Uses (4): 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=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/config.bend&name=root