|
2005:
- [SML97] examples.
-
- Run SML in interactive mode, e.g. on nexus,
- ne> sml
- Standard ML of New Jersey, Version 110.0.7, September 28, 2000 [CM; autoload enabled]
- - 1+2;
- val it = 3 : int
- - <CTRL>d
- or run a program in a file,
- ne> sml < y.sml
- Standard ML ...
- - = val it = 6 : int
- or run a program in a file in interactive mode
- ne> sml
- Standard ML ...
- - use "y.sml";
- [opening y.sml]
- val it = 6 : int
- val it = () : unit
- NB. Quote the file name; the name is a string.
c1990:
- Also see
- [bibliography],
[programming languages].
|
SML:
:: | cons |
[x1,...] | list |
[ ] | list |
@ | append |
fn => | &lambda . |
: | has type |
|
|
|