Copy stdin to stdout: Difference between revisions
add Standard ML
(Add Scala) |
(add Standard ML) |
||
Line 434:
[ Stdout nextPut:(Stdin next) ] loop.
] on: StreamError do:[]</lang>
=={{header|Standard ML}}==
<lang sml>fun copyLoop () =
case TextIO.input TextIO.stdIn of
"" => ()
| tx => copyLoop (TextIO.output (TextIO.stdOut, tx))
val () = copyLoop ()</lang>
=={{header|Symsyn}}==
|