Treatment toIpv4
net/ip::toIpv4
Inputs
⇥ text: Stream<string>
Outputs
↦ ipv4: Stream<Option<Ipv4>> (net/ip::Ipv4)
Parse each string in the stream into an Ipv4 address.
Emits none for each element that is not a valid IPv4 address.
graph LR
T("toIpv4()")
A["🟦 … 🟨"] -->|text| T
T -->|ipv4| B["〈🟦〉 … 〈none〉"]
style A fill:#ffff,stroke:#ffff
style B fill:#ffff,stroke:#ffff