def specific
import bend-kit-router@0.2.0.0/router.bend as Routerimport Base
169def specific(a: List<&2, Segment>, b: List<&2, Segment>) -> Bool:
170 match a b:
171 case Literal{x} <> at Parameter{y} <> bt:
172 True{}
173 case Parameter{x} <> at Literal{y} <> bt:
174 False{}
175 case Literal{x} <> at Literal{y} <> bt:
176 specific(at, bt)
177 case Parameter{x} <> at Parameter{y} <> bt:
178 specific(at, bt)
179 case _ _:
180 False{}