Dns.answers.scan: def of bend-kit-dns@0.7.0.0 Import: import bend-kit-dns@0.7.0.0/dns.bend as Dns Lines 235-248 of bend-kit-dns@0.7.0.0/dns.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-dns@0.7.0.0/dns.bend&start_line=235&end_line=248 import Base import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # fuel = records left. The first A record wins; CNAMEs before it are skipped. def answers.scan(fuel: Nat, r: Bytes.Cursor & RR) -> Maybe<&2, String>: match fuel: case 0n: None{} case 1n+f: (c, x) = r match x: case RRBad{}: None{} case RRA{ip}: Some{ip} case RRSkip{}: answers.scan(f, rr(c)) Uses (8): 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=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Cursor https://jend.leeeet.dev/definition.txt?path=bend-kit-dns@0.7.0.0/dns.bend&name=RR https://jend.leeeet.dev/definition.txt?path=bend-kit-dns@0.7.0.0/dns.bend&name=rr