λ

1.6: Modules

Every Standard ML program is composed of modules. Modules group together a set of definitions. Here, we define a module named Modules by using the structure keyword, with one definition, fun favouriteNum ().

This program makes use of three other modules: String, Int, and Random.

(* examples/modules.sml *)