- Standard ML of New Jersey
- Versions
- Literature
- Wikipedia: Standard ML
sml
Standard ML of New Jersey (64-bit) v110.99.1 [built: Mon Apr 12 18:45:14 2021]
- use "./sum.sml";
[opening ./sum.sml]
val sum = fn : int * int -> int
val it = () : unit
- sum (3, 5);
val it = 8 : int
- ^D (* Control + D *)
brew: smlnj
brew install --cask smlnj
To use smlnj, you may need to add the /usr/local/smlnj/bin directory to your PATH
environment variable, e.g. (for Bash shell): export PATH=/usr/local/smlnj/bin:"$PATH"
echo 'export PATH=/usr/local/smlnj/bin:"$PATH"' >> ~/.bashrc
# ~/.bash_profile, ~/.zshrc, ~/.zshenv