def v6.trail
import bend-kit-netip@0.1.0.0/netip.bend as Netipimport Base
147# An empty last segment is the second colon of a trailing "::".
148def v6.trail(w: Walk) -> Maybe<&2, Walk>:
149 match w:
150 case Gap{pre, Nil{}}:
151 Some{Gap{pre, Nil{}}}
152 case _:
153 None{}