Cli.finish_name: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 1253-1258 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=1253&end_line=1258 import Base # rev is the name so far, reversed. def finish_name(rev: String, rest: String, +pos: Nat, +first: Bool, +dot_start: Nat) -> NameScan: Bool.pick(NameScan, Bool.or(first, Nat.is_lt(dot_start, pos)), NameBad{Bool.pick(Nat, first, pos, dot_start)}, NameOK{String.reverse(rev), rest, pos}) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.reverse https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=NameScan