def claims
import ezx@1.11.0.0/src/ws/root.bend as Rootimport Base
import ezx@1.11.0.0/src/ws/workspace.bend as W
58# whether a workspace root makes the directory this far below it a member:
59# the root itself always, and any other when an entry names it and no
60# exclusion does
61def claims(+spec: W.Spec, rel: List<&2, String>) -> Bool:
62 match rel:
63 case []:
64 True{}
65 case +hd <> +tl:
66 W.chosen(spec, hd <> tl)