def Ip4.cidr.go
import bend-kube-runtime@0.2.0.0/src/proxy.bend as Proxyimport Base
98def Ip4.cidr.go(h: String, parts: List<&2, String>) -> Bool:
99 match parts:
100 case Con{n, Con{b, Nil{}}}:
101 Ip4.in(Ip4.parse(h), Ip4.parse(n), Ip4.mask.of(U32.read(b)))
102 case _:
103 False{}