def sug.best
import shake@0.7.0.0/src/cli.bend as Cliimport Base
2356# the closest close candidate, the first among equals
2357def sug.best(cands: List<&2, String>, +typed: String) -> Maybe<&2, String>:
2358 match cands:
2359 case Nil{}:
2360 None{}
2361 case Con{+cc, tt}:
2362 sug.keep(sug.close(typed, cc), typed, cc, sug.best(tt, typed))