Remember the unit of measure () , it is convenient in many situations.
In this case, you can use the iter function from the Optional module :
Option.iter Console.WriteLine readInt
It also emphasizes the fact that iter functions (for example, those from the Seq , List and Array modules) will always give you a unit () value.
source share