Link Search Menu Expand Document


Table of contents

  1. Net
    1. Net.parseIp4(String) -> Result<List>


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.

// [10, 0, 0, 2]

This site uses Just The Docs, with modifications.