def best.compare

bend-kit-router@0.2.0.0 · router.bend:297

import bend-kit-router@0.2.0.0/router.bend as Router
import 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}})

Uses (4)

Used by (1)