Caesar cipher: Difference between revisions

Content added Content deleted
mNo edit summary
Line 4,401: Line 4,401:


<syntaxhighlight lang="langur">val .rot = fn(.s, .key) {
<syntaxhighlight lang="langur">val .rot = fn(.s, .key) {
cp2s map(fn(.c) rotate(rotate(.c, .key, 'a'..'z'), .key, 'A'..'Z'), s2cp .s)
cp2s map(fn(.c) { rotate(rotate(.c, .key, 'a'..'z'), .key, 'A'..'Z') }, s2cp .s)
}
}



val .s = "A quick brown fox jumped over something."
val .s = "A quick brown fox jumped over something."