Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
20
Task/Caesar-cipher/Arc/caesar-cipher-1.arc
Normal file
20
Task/Caesar-cipher/Arc/caesar-cipher-1.arc
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
(= rot (fn (L N)
|
||||
(if
|
||||
(and (<= 65 L) (>= 90 L))
|
||||
(do
|
||||
(= L (- L 65))
|
||||
(= L (mod (+ N L) 26))
|
||||
(= L (+ L 65)))
|
||||
(and (<= 97 L) (>= 122 L))
|
||||
(do
|
||||
(= L (- L 97))
|
||||
(= L (mod (+ N L) 26))
|
||||
(= L (+ L 97))))
|
||||
L))
|
||||
|
||||
(= caesar (fn (text (o shift))
|
||||
(unless shift (= shift 13))
|
||||
(= output (map [int _] (coerce text 'cons)))
|
||||
(= output (map [rot _ shift] output))
|
||||
(string output)
|
||||
))
|
||||
2
Task/Caesar-cipher/Arc/caesar-cipher-2.arc
Normal file
2
Task/Caesar-cipher/Arc/caesar-cipher-2.arc
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
(caesar "The quick brown fox jumps over the lazy dog.")
|
||||
"Gur dhvpx oebja sbk whzcf bire gur ynml qbt."
|
||||
Loading…
Add table
Add a link
Reference in a new issue