Documentation
¶
Overview ¶
Package number provides Option-based utilities for number conversions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Atoi converts a string to an integer, returning Some(int) on success or None on failure. // // Example: // // result := Atoi("42") // Some(42) // result := Atoi("abc") // None // result := Atoi("") // None Atoi = O.Optionize1(atoi) // Itoa converts an integer to a string, always returning Some(string). // // Example: // // result := Itoa(42) // Some("42") // result := Itoa(-10) // Some("-10") // result := Itoa(0) // Some("0") Itoa = F.Flow2(strconv.Itoa, O.Of[string]) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.