Skip to main content
Version: Next

network

Retrieves the network address of a subnet.

network(x:subnet) -> ip

Description

The network function returns the network address of a subnet.

Examples

Get the network address of a subnet

from {subnet: 192.168.0.0/16}
select ip = subnet.network()
{ip: 192.168.0.0}