Router.overlap: def of bend-kit-router@0.2.0.0 Import: import bend-kit-router@0.2.0.0/router.bend as Router Lines 422-435 of bend-kit-router@0.2.0.0/router.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-router@0.2.0.0/router.bend&start_line=422&end_line=435 import Base def overlap(a: List<&2, Segment>, b: List<&2, Segment>) -> Bool: match a b: case Nil{} Nil{}: True{} case Literal{x} <> at Literal{y} <> bt: continue(String.eq(x, y), u => overlap(at, bt)) case Literal{x} <> at Parameter{y} <> bt: continue(Bool.not(String.is_empty(x)), u => overlap(at, bt)) case Parameter{x} <> at Literal{y} <> bt: continue(Bool.not(String.is_empty(y)), u => overlap(at, bt)) case Parameter{x} <> at Parameter{y} <> bt: overlap(at, bt) case _ _: False{} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=bend-kit-router@0.2.0.0/router.bend&name=Segment https://jend.leeeet.dev/definition.txt?path=bend-kit-router@0.2.0.0/router.bend&name=continue