December 2021
Beginner
840 pages
47h 29m
English
The ML module system consists of structures, signatures, and functors. A structure in ML is a collection of related data types and functions akin to a class from object-oriented programming. (Structures and functors in ML resemble classes and templates in C++, respectively.) Multiple predefined ML structures are available: TextIO, Char, String, List, Math. A function within a structure can be invoked with its fully qualified name (line 1) or, once the structure in which it resides has been opened (line 8), with its unqualified name (line 29):
To prevent a function from one structure overriding ...
Read now
Unlock full access