def own.files
import ezx@1.11.0.0/src/ws/doctor.bend as Doctorimport Base
import ezx@1.11.0.0/src/lock/world.bend as LW
80# the committed files that are a member's own
81def own.files(
82 +dir: List<&2, String>,
83 +dirs: List<&2, List<&2, String>>,
84 fs: List<&2, LW.Source>
85) -> List<&2, LW.Source>:
86 match fs:
87 case []:
88 []
89 case LW.Source{+at, text} <> tl:
90 rest = own.files(dir, dirs, tl)
91 own.put(own.at(dir, dirs, at), LW.Source{at, text}, rest)