December 2021
Beginner
840 pages
47h 29m
English
Both ML and Haskell assign a unique type to every value, expression, operator, and function. Recall that the type of an operator or function describes the types of its domain and range. Certain operators require values of a particular type. For instance, the div (i.e., division) operator in ML requires two operands of type int and has type
, whereas the / (i.e., division) operator in ML requires two operands of type real and has type
. These operators are monomorphic,4 meaning they have only one type.
Other operators ...
Read now
Unlock full access