def front

ezx@1.11.0.0 · src/lock/plan.bend:1052

import ezx@1.11.0.0/src/lock/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/lock/world.bend as W

1052# every file of a tree but the last, which a `Lay` writes as the manifest
1053def front(fs: List<&2, W.Source>) -> List<&2, W.Source>:
1054  match fs:
1055    case []:
1056      []
1057    case h <> t:
1058      match t:
1059        case []:
1060          []
1061        case h2 <> t2:
1062          h <> front(h2 <> t2)

Uses (2)

Used by (1)