Tutorial by Examples

REPL stands for 'Read Evaluate Print Loop.' The REPL can be used to write and execute code one line at a time and is an alternative to writing code to a file and then compiling or interpreting the entire file before execution. To start the SMLNJ REPL from a command prompt: smluser> sml Standar...
All SML expressions return a value. The REPL stores the return value of the last evaluated expression. it provides the value of the last evaluated expression within the REPL. smluser> sml Standard ML of New Jersey v110.78 [built: Thu Jul 23 11:21:58 2015] - 3+4; val it = 7 : int - it; val i...

Page 1 of 1