ML Programming Languages
ML Programming Languages
Principles of ML
• ML expressions must be followed by a semicolon
• ML responds for any definition through the following primitives
o val stands for value
o it the variable ‘it’ stands for definition value
o : represent the association of value with a type
Operator:
• Arithmetic: +-*/, mod for remainder of integer
• / is for division of real numbers and div for division of integers
• string concatenation ^
• Conditional operator = ,>,<,>=,<=,<>
• ‘and also’ for logical and & ‘or else’ for logical or
Functions
Syntax : fun function_name (Parameter list) = function body;