Functional Weave
Code in Python

net.ipv6@1.0.0

impl/python/is_ipv6.py

196 bytes · the Python implementation · view raw

Imports name this capability’s declared dependencies, which fune builds next to it in your project; each one links to its page.

from .net_ipv6_parse_ipv6 import ipv6_groups  ← parseIpv6, another function of this group · built into the same file, even by a slim install


def is_ipv6(text: str) -> bool:
    """True exactly when parse_ipv6 would accept the text; never raises."""
    return ipv6_groups(text) is not None