RosettaCodeData/Task/Copy-stdin-to-stdout/Standard-ML/copy-stdin-to-stdout.ml

7 lines
144 B
Standard ML

fun copyLoop () =
case TextIO.input TextIO.stdIn of
"" => ()
| tx => copyLoop (TextIO.output (TextIO.stdOut, tx))
val () = copyLoop ()