Base.valid_host2: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/store/base.bend as Base Lines 154-159 of cswap-bend-cli@0.1.0.0/store/base.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/store/base.bend&start_line=154&end_line=159 import Base def valid_host2(+tld: Maybe<&2, String>, +n: Nat, +chars: Bool) -> Bool: match tld: case None{}: False{} case Some{t}: chars && Nat.is_ge(n, 2n) && all_alpha(t) && Nat.is_ge(String.length(t), 2n) 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.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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_ge https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.length https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/base.bend&name=all_alpha