Why do some OCaml functions take () as a parameter?

Viewed 994

Example in Unix module:

val environment : unit -> string array

Why not just:

val environment : string array

?

3 Answers
Related