Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Caesar-cipher/Langur/caesar-cipher.langur
Normal file
10
Task/Caesar-cipher/Langur/caesar-cipher.langur
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
val .rot = f(.s, .key) {
|
||||
cp2s map(f(.c) rotate(rotate(.c, .key, 'a'..'z'), .key, 'A'..'Z'), s2cp .s)
|
||||
}
|
||||
|
||||
val .s = "A quick brown fox jumped over something."
|
||||
val .key = 3
|
||||
|
||||
writeln " original: ", .s
|
||||
writeln "encrypted: ", .rot(.s, .key)
|
||||
writeln "decrypted: ", .rot(.rot(.s, .key), -.key)
|
||||
Loading…
Add table
Add a link
Reference in a new issue