I write a "script" in standard ML (SML / NJ), which customizes the interactive environment to your liking. The last thing the script does is print a message stating that everything went smoothly. Essentially, the last line is this:
print "SML is ready.\n";
When I run the script, everything goes fine, but the SML interpreter displays the return value from the print function.
SML is ready. val it = () : unit -
Since I'm just printing something on the screen, how can I suppress the output of "val it = (): unit", so all I see is the message "SML is ready", followed by an interpreter prompt?
sml smlnj
Barry brown
source share