Net
Table of contents
Net
To make use of the Net module an import is required.
import Net;
Net.parseIp4(String) -> Result<List>
parseIp4 takes a string representation of an IP4 address and returns a Result that unwraps to list containing an entry for each octet.
Net.parseIp4("10.0.0.2").unwrap();
// [10, 0, 0, 2]