The usual idiom is to define the function to take one argument of type Unit (let functionName () = 42
). It will then be called as functionName ()
. (The unit type has only one value, which is ()
.)
The usual idiom is to define the function to take one argument of type Unit (let functionName () = 42
). It will then be called as functionName ()
. (The unit type has only one value, which is ()
.)