Jump to content

Rot-13: Difference between revisions

imported>Myrmidon
Line 3,985:
 
val rot13 = String.map rot13char</syntaxhighlight>
 
Helper function:
 
<syntaxhighlight lang="sml">fun rot13stdin () =
case (TextIO.inputLine TextIO.stdIn)
of NONE => ()
| SOME(s) => (print (rot13 s); rot13stdin ());
</syntaxhighlight>
 
==={{header|mLite}}===
Reads text file from stdin to list of lines, encodes and prints lines of encoding to stdout.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.