def is_same_head
import bend-lint-rules@0.2.0.0/layout/canon_import_path.bend as CanonImportPathimport Base
42# Whether both lists start with the same segment.
43def is_same_head(from: List<&2, String>, to: List<&2, String>) -> Bool:
44 match from to:
45 case Con{a, as} Con{b, bs}:
46 String.eq(a, b)
47 case _ _:
48 False{}