def is_same_head

bend-lint-rules@0.2.0.0 · layout/canon_import_path.bend:42

import bend-lint-rules@0.2.0.0/layout/canon_import_path.bend as CanonImportPath
import 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{}

Uses (4)

Used by (2)