Cli.sug.best: def of shake@0.7.0.0 Import: import shake@0.7.0.0/src/cli.bend as Cli Lines 2356-2362 of shake@0.7.0.0/src/cli.bend: https://jend.leeeet.dev/read.txt?path=shake@0.7.0.0/src/cli.bend&start_line=2356&end_line=2362 import Base # the closest close candidate, the first among equals def sug.best(cands: List<&2, String>, +typed: String) -> Maybe<&2, String>: match cands: case Nil{}: None{} case Con{+cc, tt}: sug.keep(sug.close(typed, cc), typed, cc, sug.best(tt, typed)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=sug.close https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=sug.keep