def relative.go
import bend-lint-rules@0.2.0.0/layout/canon_import_path.bend as CanonImportPathimport Base
50def relative.go(from: List<&2, String>, to: List<&2, String>, same: Bool) -> List<&2, String>:
51 match from to same:
52 case Con{a, +as} Con{b, +bs} True{}:
53 relative.go(as, bs, is_same_head(as, bs))
54 case f t _:
55 ups(f, t)