Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Rot-13/Standard-ML/rot-13.ml
Normal file
9
Task/Rot-13/Standard-ML/rot-13.ml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fun rot13char c =
|
||||
if c >= #"a" andalso c <= #"m" orelse c >= #"A" andalso c <= #"M" then
|
||||
chr (ord c + 13)
|
||||
else if c >= #"n" andalso c <= #"z" orelse c >= #"N" andalso c <= #"Z" then
|
||||
chr (ord c - 13)
|
||||
else
|
||||
c
|
||||
|
||||
val rot13 = String.map rot13char
|
||||
Loading…
Add table
Add a link
Reference in a new issue