Skip to content

to_int

In std/string.

fn to_int(self) : Option<Int>

The integer self writes, surrounding whitespace aside, or none when it writes none: "-42" | to_int is -42, and "1.5" | to_int is none.