
3.5 Using the libraries in your applications: an example
fun get_value () = TextIO.inputLine TextIO.stdIn;As you can see, this program uses thefun show_value x = TextIO.output (TextIO.stdOut, x);
fun run () = let val v = get_value() val s = String.concat ["The output is: ", v] in show_value s end;
TextIO and String structures from the Basis library.

Generated with Harlequin WebMaker