def front
import ezx@1.11.0.0/src/fetch/plan.bend as Planimport Base
import ezx@1.11.0.0/src/lock/world.bend as W
894# every file of a tree but the last, which a `Lay` writes as the manifest
895def front(fs: List<&2, W.Source>) -> List<&2, W.Source>:
896 match fs:
897 case []:
898 []
899 case h <> t:
900 match t:
901 case []:
902 []
903 case h2 <> t2:
904 h <> front(h2 <> t2)