def sug.best

shake@0.7.0.0 · src/cli.bend:2356

import shake@0.7.0.0/src/cli.bend as Cli
import 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))

Uses (5)

Used by (1)