def tailnet_hosting.go
import near-architecture@0.9.1.0/arc.bend as Arcimport Base
546def tailnet_hosting.go(xs: List<&2, Container>) -> Nat:
547 match xs:
548 case []:
549 0n
550 case c <> rest:
551 match c:
552 case Container{_, _, _, _, _, exposure, cs, _, _, _, _, _}:
553 Nat.add(one_if(is_tailnet(exposure) && Nat.is_gt(count_in(Hosting{}, cs), 0n)), tailnet_hosting.go(rest))