Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Rot-13/Erlang/rot-13.erl
Normal file
6
Task/Rot-13/Erlang/rot-13.erl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
rot13(Str) ->
|
||||
F = fun(C) when (C >= $A andalso C =< $M); (C >= $a andalso C =< $m) -> C + 13;
|
||||
(C) when (C >= $N andalso C =< $Z); (C >= $n andalso C =< $z) -> C - 13;
|
||||
(C) -> C
|
||||
end,
|
||||
lists:map(F, Str).
|
||||
Loading…
Add table
Add a link
Reference in a new issue