def best.compare
import bend-kit-router@0.2.0.0/router.bend as Routerimport Base
297def best.compare(~A: Data, candidate: Path<A>, old: Path<A>) -> Maybe<&2, Path<A>>:
298 Path{+cs, +ch, +cg, +ca} = candidate
299 Path{+ss, +handlers, +groups, +allowed} = old
300 Bool.pick(Maybe<&2, Path<A>>, specific(cs, ss), Some{Path{cs, ch, cg, ca}}, Some{Path{ss, handlers, groups, allowed}})